From cdf4a0240d1fce66f858e5ea0702ecd97ff859ac Mon Sep 17 00:00:00 2001 From: Timo Date: Fri, 7 Jul 2023 22:05:26 +0200 Subject: [PATCH] fix install dir SteamCMD Install dir has to be set before login --- scripts/start-server.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/start-server.sh b/scripts/start-server.sh index 0a5e8fc..c5e5938 100644 --- a/scripts/start-server.sh +++ b/scripts/start-server.sh @@ -22,14 +22,14 @@ if [ "${USERNAME}" == "" ]; then if [ "${VALIDATE}" == "true" ]; then echo "---Validating installation---" ${STEAMCMD_DIR}/steamcmd.sh \ - +login anonymous \ +force_install_dir ${SERVER_DIR} \ + +login anonymous \ +app_update ${GAME_ID} validate \ +quit else ${STEAMCMD_DIR}/steamcmd.sh \ - +login anonymous \ +force_install_dir ${SERVER_DIR} \ + +login anonymous \ +app_update ${GAME_ID} \ +quit fi @@ -37,14 +37,14 @@ else if [ "${VALIDATE}" == "true" ]; then echo "---Validating installation---" ${STEAMCMD_DIR}/steamcmd.sh \ - +login ${USERNAME} ${PASSWRD} \ +force_install_dir ${SERVER_DIR} \ + +login ${USERNAME} ${PASSWRD} \ +app_update ${GAME_ID} validate \ +quit else ${STEAMCMD_DIR}/steamcmd.sh \ - +login ${USERNAME} ${PASSWRD} \ +force_install_dir ${SERVER_DIR} \ + +login ${USERNAME} ${PASSWRD} \ +app_update ${GAME_ID} \ +quit fi @@ -66,4 +66,4 @@ echo "---Server ready---" echo "---Start Server---" cd ${SERVER_DIR} -${SERVER_DIR}/svends_run ${GAME_PARAMS} -console -port ${GAME_PORT} \ No newline at end of file +${SERVER_DIR}/svends_run ${GAME_PARAMS} -console -port ${GAME_PORT}