mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-22 06:38:27 +00:00
Add --saveworld option to update
This commit is contained in:
parent
f60556c317
commit
4e7fc8f0b1
@ -575,6 +575,7 @@ doUpdate() {
|
|||||||
local updatetype=normal
|
local updatetype=normal
|
||||||
local validate=
|
local validate=
|
||||||
local modupdate=
|
local modupdate=
|
||||||
|
local saveworld=
|
||||||
|
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
if [ "$arg" == "--force" ]; then
|
if [ "$arg" == "--force" ]; then
|
||||||
@ -586,6 +587,8 @@ doUpdate() {
|
|||||||
elif [ "$arg" == "--validate" ]; then
|
elif [ "$arg" == "--validate" ]; then
|
||||||
validate=validate
|
validate=validate
|
||||||
appupdate=1
|
appupdate=1
|
||||||
|
elif [ "$arg" == "--saveworld" ]; then
|
||||||
|
saveworld=1
|
||||||
elif [ "$arg" == "--update-mods" ]; then
|
elif [ "$arg" == "--update-mods" ]; then
|
||||||
modupdate=1
|
modupdate=1
|
||||||
fi
|
fi
|
||||||
@ -626,8 +629,12 @@ doUpdate() {
|
|||||||
if isTheServerRunning ;then
|
if isTheServerRunning ;then
|
||||||
serverWasAlive=1
|
serverWasAlive=1
|
||||||
fi
|
fi
|
||||||
echo "Saving world"
|
|
||||||
doSaveWorld
|
if [ -n "$saveworld" ]; then
|
||||||
|
echo "Saving world"
|
||||||
|
doSaveWorld
|
||||||
|
fi
|
||||||
|
|
||||||
doStop
|
doStop
|
||||||
|
|
||||||
if [ -n "$appupdate" ]; then
|
if [ -n "$appupdate" ]; then
|
||||||
@ -1157,6 +1164,7 @@ while true; do
|
|||||||
echo "update --safe Wait for server to perform world save and update."
|
echo "update --safe Wait for server to perform world save and update."
|
||||||
echo "update --warn Warn players before updating server"
|
echo "update --warn Warn players before updating server"
|
||||||
echo "update --validate Validates all ARK server files"
|
echo "update --validate Validates all ARK server files"
|
||||||
|
echo "update --saveworld Saves world before update"
|
||||||
echo "update --update-mods Updates installed and requested mods"
|
echo "update --update-mods Updates installed and requested mods"
|
||||||
echo "upgrade-tools Check for a new ARK Server Tools version and upgrades it if needed"
|
echo "upgrade-tools Check for a new ARK Server Tools version and upgrades it if needed"
|
||||||
echo "uninstall-tools Uninstall the ARK Server Tools"
|
echo "uninstall-tools Uninstall the ARK Server Tools"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user