fixed forceUpdate function

This commit is contained in:
FezVrasta 2015-06-25 17:29:44 +02:00
parent abd1e3ab31
commit ad9a1a4587

View File

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