@@ -8,9 +8,13 @@ export INTERNAL_IP
|
|||||||
# Print current Python version
|
# Print current Python version
|
||||||
python --version
|
python --version
|
||||||
|
|
||||||
# Replace Startup Variables
|
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||||
MODIFIED_STARTUP=$(echo -e $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'))
|
# variable format of "${VARIABLE}" before evaluating the string and automatically
|
||||||
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
# replacing the values.
|
||||||
|
PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||||
|
|
||||||
# Run the Server
|
# Display the command we're running in the output, and then execute it with eval
|
||||||
eval ${MODIFIED_STARTUP}
|
printf "\033[1m\033[33mcontainer@pelican~ \033[0m"
|
||||||
|
echo "$PARSED"
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
eval "$PARSED"
|
||||||
|
Reference in New Issue
Block a user