mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-26 16:28:28 +00:00
fixed forceUpdate function
This commit is contained in:
parent
abd1e3ab31
commit
ad9a1a4587
@ -253,8 +253,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