Merge pull request #245 from pelican-eggs/entrypoint_pelican
replace pterodactyl with pelican
This commit is contained in:
@@ -12,17 +12,17 @@ export INTERNAL_IP
|
|||||||
cd /home/container || exit 1
|
cd /home/container || exit 1
|
||||||
|
|
||||||
# Print Java version
|
# Print Java version
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mjava -version\n"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0mjava -version\n"
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
|
|
||||||
# Print Python version
|
# Print Python version
|
||||||
if command -v python &> /dev/null
|
if command -v python &> /dev/null
|
||||||
then
|
then
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mpython --version\n"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0mpython --version\n"
|
||||||
python --version
|
python --version
|
||||||
else
|
else
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mpython3 --version\n"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0mpython3 --version\n"
|
||||||
python3 --version
|
python3 --version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -33,6 +33,6 @@ PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat
|
|||||||
|
|
||||||
# Display the command we're running in the output, and then execute it with the env
|
# Display the command we're running in the output, and then execute it with the env
|
||||||
# from the container itself.
|
# from the container itself.
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
exec env ${PARSED}
|
exec env ${PARSED}
|
||||||
|
@@ -9,7 +9,7 @@ export INTERNAL_IP
|
|||||||
export DOTNET_ROOT=/usr/share/
|
export DOTNET_ROOT=/usr/share/
|
||||||
|
|
||||||
# print the dotnet version on startup
|
# print the dotnet version on startup
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mdotnet --version\n"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0mdotnet --version\n"
|
||||||
dotnet --version
|
dotnet --version
|
||||||
|
|
||||||
# Replace Startup Variables
|
# Replace Startup Variables
|
||||||
|
@@ -10,7 +10,7 @@ export INTERNAL_IP
|
|||||||
cd /home/container || exit 1
|
cd /home/container || exit 1
|
||||||
|
|
||||||
# Print Erlang's version
|
# Print Erlang's version
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0merl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()'\n"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0merl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()'\n"
|
||||||
erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()'
|
erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()'
|
||||||
|
|
||||||
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||||
@@ -20,6 +20,6 @@ PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat
|
|||||||
|
|
||||||
# Display the command we're running in the output, and then execute it with the env
|
# Display the command we're running in the output, and then execute it with the env
|
||||||
# from the container itself.
|
# from the container itself.
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
exec env ${PARSED}
|
exec env ${PARSED}
|
||||||
|
@@ -12,7 +12,7 @@ export INTERNAL_IP
|
|||||||
cd /home/container || exit 1
|
cd /home/container || exit 1
|
||||||
|
|
||||||
# Print minetest version
|
# Print minetest version
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mminetest --version\n"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0mminetest --version\n"
|
||||||
minetest --version
|
minetest --version
|
||||||
|
|
||||||
# Replace Startup Variables
|
# Replace Startup Variables
|
||||||
|
@@ -34,7 +34,7 @@ export INTERNAL_IP
|
|||||||
cd /home/container || exit 1
|
cd /home/container || exit 1
|
||||||
|
|
||||||
# Print Go version
|
# Print Go version
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mgo version\n"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0mgo version\n"
|
||||||
go version
|
go version
|
||||||
|
|
||||||
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||||
@@ -44,6 +44,6 @@ PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat
|
|||||||
|
|
||||||
# Display the command we're running in the output, and then execute it with the env
|
# Display the command we're running in the output, and then execute it with the env
|
||||||
# from the container itself.
|
# from the container itself.
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
exec env ${PARSED}
|
exec env ${PARSED}
|
||||||
|
@@ -34,7 +34,7 @@ export INTERNAL_IP
|
|||||||
cd /home/container || exit 1
|
cd /home/container || exit 1
|
||||||
|
|
||||||
# Print Java version
|
# Print Java version
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mjava -version\n"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0mjava -version\n"
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||||
@@ -44,6 +44,6 @@ PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat
|
|||||||
|
|
||||||
# Display the command we're running in the output, and then execute it with the env
|
# Display the command we're running in the output, and then execute it with the env
|
||||||
# from the container itself.
|
# from the container itself.
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
eval ${PARSED}
|
eval ${PARSED}
|
||||||
|
@@ -38,7 +38,7 @@ PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat
|
|||||||
|
|
||||||
# Display the command we're running in the output, and then execute it with the env
|
# Display the command we're running in the output, and then execute it with the env
|
||||||
# from the container itself.
|
# from the container itself.
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
exec env ${PARSED}
|
exec env ${PARSED}
|
||||||
|
|
||||||
|
@@ -19,6 +19,6 @@ PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat
|
|||||||
|
|
||||||
# Display the command we're running in the output, and then execute it with the env
|
# Display the command we're running in the output, and then execute it with the env
|
||||||
# from the container itself.
|
# from the container itself.
|
||||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
exec env ${PARSED}
|
exec env ${PARSED}
|
||||||
|
Reference in New Issue
Block a user