From 84e114a03bd7784ae0f0f3534546d77097aa91d5 Mon Sep 17 00:00:00 2001 From: softwarenoob Date: Sun, 21 Nov 2021 20:07:03 +0200 Subject: [PATCH] fix: force_install_dir error SteamCMD now complains when trying to login before providing install dir `Please use force_install_dir before logon!` --- games/rust/entrypoint.sh | 4 ++-- games/source/entrypoint.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/games/rust/entrypoint.sh b/games/rust/entrypoint.sh index d300782..b179f05 100644 --- a/games/rust/entrypoint.sh +++ b/games/rust/entrypoint.sh @@ -5,9 +5,9 @@ cd /home/container export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` # Update Rust Server -./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update 258550 +quit +./steamcmd/steamcmd.sh +force_install_dir /home/container +login anonymous +app_update 258550 +quit -# Replace Startup Variables +# Replace Startup Variables MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` echo ":/home/container$ ${MODIFIED_STARTUP}" diff --git a/games/source/entrypoint.sh b/games/source/entrypoint.sh index 4f4bcfe..6830b8d 100644 --- a/games/source/entrypoint.sh +++ b/games/source/entrypoint.sh @@ -53,10 +53,10 @@ else fi ## if auto_update is not set or to 1 update -if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then +if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then - ./steamcmd/steamcmd.sh +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} +force_install_dir /home/container +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit else echo -e "No appid set. Starting Server" fi