Skip to content

Commit

Permalink
Fix Steam Auto Updating for Squad
Browse files Browse the repository at this point in the history
  • Loading branch information
griffindor301 authored Dec 14, 2023
1 parent 31e9e6b commit 98b589e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion games/source/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ sleep 1
cd /home/container

if [ "${AUTO_UPDATE}" == "1" ]; then
if [ -d "./steamcmd" ]; then
./steamcmd/steamcmd.sh +@sSteamCmdForcePlatformBitness 64 +force_install_dir /home/container +login anonymous +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit
fi
if [ -d "./steam" ]; then
./steam/steamcmd.sh +@sSteamCmdForcePlatformBitness 64 +force_install_dir /home/container +login anonymous +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit
fi
else
echo -e "Not updating game server as auto update was set to 0. Starting Server"
fi
Expand All @@ -12,4 +17,4 @@ MODIFIED_STARTUP=$(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')

echo -e "\033[1;33mcustomer@apollopanel:~\$\033[0m ${MODIFIED_STARTUP}"

eval ${MODIFIED_STARTUP}
eval ${MODIFIED_STARTUP}

0 comments on commit 98b589e

Please sign in to comment.