diff --git a/.scripts/startup.sh b/.scripts/startup.sh index 2ecb9dff..7e02b4e0 100644 --- a/.scripts/startup.sh +++ b/.scripts/startup.sh @@ -4,21 +4,10 @@ if [ -z "$SESSION_ID" ]; then echo "Error: SESSION_ID environment variable is not set." exit 1 fi - -xarg="$*" - -if [ -z "$xarg" ]; then - echo "Error: No command specified to run the game. Exiting." - exit 1 -fi - + #Open udp port to listed for QUIC events on export PORT=${PORT:-"8080"} -escaped_xarg=$(printf '%s\n' "$xarg" | sed -e 's/[\/&]/\\&/g') - -sudo sed -i "s|^command.*=.*$|command=bash -c \"$escaped_xarg\"|" /etc/supervisord.d/game.ini - sudo sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisord.d/game.ini -sudo -E /usr/bin/supervisord -c /etc/supervisord.conf \ No newline at end of file +sudo -E /usr/bin/supervisord -c /etc/supervisord.conf