Update start-server.sh

This commit is contained in:
2019-04-23 19:29:40 +02:00
committed by GitHub
parent 08a85fc26c
commit b9821478b5

View File

@@ -7,10 +7,9 @@ if [ ! -f ${STEAMCMD_DIR}/steamcmd.sh ]; then
fi
echo "---Update SteamCMD---"
if [ -z "USERNAME" ] then
${STEAMCMD_DIR}/steamcmd.sh \
+login anonymous \
+quit
if [ "${USERNAME}" == "" ]; then
echo "Please enter a valid username and password and restart the container."
sleep infinity
else
${STEAMCMD_DIR}/steamcmd.sh \
+login $USERNAME $PASSWRD \
@@ -18,23 +17,18 @@ else
fi
echo "---Update Server---"
if [ -z "USERNAME" ] && [ ! -f then
echo "You've not entered a Username please execute the following command from the Unraid console for this container: 'docker exec <ContainerName> --user steam /serverdata/steamcmd/steamcmd.sh +login <username> <password> +force_install_dir /serverdata/serverfiles +app_update 233780 validate +quit' please replace the <> with the desctiption. After everything finishes please restart the container."
sleep infinity
else
if [ "$VALIDATE" = "true" ]; then
if [ "${VALIDATE}" == "true" ]; then
${STEAMCMD_DIR}/steamcmd.sh \
+login $USERNAME $PASSWRD \
+login anonymous \
+force_install_dir $SERVER_DIR \
+app_update $GAME_ID validate \
+quit
else
else
${STEAMCMD_DIR}/steamcmd.sh \
+login $USERNAME $PASSWRD \
+login anonymous \
+force_install_dir $SERVER_DIR \
+app_update $GAME_ID \
+quit
fi
fi
echo "---Prepare Server---"