From 4a1ac5af593510aca7361a6f96b7ba434401f480 Mon Sep 17 00:00:00 2001 From: FezVrasta Date: Fri, 10 Jul 2015 13:39:04 +0200 Subject: [PATCH] fixed safeupdate fixes #104 --- tools/arkmanager | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/arkmanager b/tools/arkmanager index f811713..aff9fa8 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -319,7 +319,7 @@ forceUpdate(){ # # Waits for server to perform save before update (until save file is newer than 1 minute) # -safeUpdate(){ +doSafeUpdate(){ cd "$arkserverroot" if isUpdateNeeded; then @@ -412,7 +412,9 @@ case "$1" in update) if [ "$2" == "--force" ]; then forceUpdate - else + elif [ "$2" == "--safe" ]; then + doSafeUpdate + else; then doUpdate fi ;; @@ -440,10 +442,10 @@ case "$1" in echo "restart Stops the server and then starts it" echo "start Starts the server" echo "stop Stops the server" - echo "safeupdate Wait for server to perform world save and update." echo "status Returns the status of the current ARK server instance" echo "update Check for a new ARK server version, if needed, stops the server, updates it, and starts it again" echo "update --force Apply update without check the current version" + echo "update --safe Wait for server to perform world save and update." echo "upgrade Check for a new ARK Server Tools version and upgrades it if needed" ;; *)