Update start-server.sh
This commit is contained in:
@@ -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,24 +17,19 @@ 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
|
||||
${STEAMCMD_DIR}/steamcmd.sh \
|
||||
+login $USERNAME $PASSWRD \
|
||||
+login anonymous \
|
||||
+force_install_dir $SERVER_DIR \
|
||||
+app_update $GAME_ID \
|
||||
+quit
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "---Prepare Server---"
|
||||
chmod -R 770 ${DATA_DIR}
|
||||
|
Reference in New Issue
Block a user