mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-21 22:38:26 +00:00
fixed forceUpdate function
This commit is contained in:
parent
659e550b04
commit
2e12cdedeb
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user