Actually correct command running...
This commit is contained in:
@@ -34,6 +34,7 @@ export INTERNAL_IP
|
||||
cd /home/container || exit 1
|
||||
|
||||
# Print Node.js version
|
||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mnode -v\n"
|
||||
node -v
|
||||
|
||||
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||
@@ -44,4 +45,5 @@ 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
|
||||
# from the container itself.
|
||||
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
||||
exec env "$PARSED"
|
||||
# shellcheck disable=SC2086
|
||||
exec env ${PARSED}
|
||||
|
Reference in New Issue
Block a user