fixed forceUpdate function

This commit is contained in:
FezVrasta 2015-06-25 17:29:44 +02:00
parent 659e550b04
commit 2e12cdedeb

View File

@ -250,8 +250,10 @@ forceUpdate(){
doStop doStop
cd "$steamcmdroot" cd "$steamcmdroot"
./$steamcmdexec +login anonymous +force_install_dir "$arkserverroot" +app_update $appid +quit ./$steamcmdexec +login anonymous +force_install_dir "$arkserverroot" +app_update $appid +quit
echo "$bnumber" > "$arkserverroot/arkversion" # the current version should be the last version. We set our version
echo "$timestamp: update to $bnumber complete" >> "$logdir/update.log" getAvailableVersion
setCurrentVersion
echo "$timestamp: update to $instver complete" >> "$logdir/update.log"
# we restart the server only if it was started before the update # we restart the server only if it was started before the update
if [ $serverWasAlive -eq 1 ]; then if [ $serverWasAlive -eq 1 ]; then