From d192a1fe645860022f7c0e15b4c5675ead265c47 Mon Sep 17 00:00:00 2001 From: FezVrasta Date: Wed, 8 Jul 2015 15:05:56 +0200 Subject: [PATCH] forceupdate replaced by update --force and added documentation about the new backup command --- README.md | 3 +++ tools/arkmanager | 34 +++++++++++++++++----------------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 86ec18d..a54a416 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,9 @@ Check if a new version of the server is available but not apply it #### arkmanager upgrade Check for a new ARK Server Tools version and upgrades it if needed +#### arkmanager backup +Saves a backup of your server inside the backup directory + ## Credits Original author of arkmanager: LeXaT diff --git a/tools/arkmanager b/tools/arkmanager index bf40e46..4cdc7a9 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -410,11 +410,11 @@ case "$1" in doInstall ;; update) - doUpdate - #testfunction - ;; - forceupdate) - forceUpdate + if [ "$2" == "--force" ]; then + forceUpdate + else + doUpdate + fi ;; checkupdate) checkForUpdate @@ -433,18 +433,18 @@ case "$1" in ;; -h|--help) echo -e "Usage: arkmanager[OPTION]\n" - echo "Option Description" - echo "start Starts the server" - echo "stop Stops the server" - echo "restart Stops the server and then starts it" - echo "install Install the ARK server files from steamcmd" - echo "update Check for a new ARK server version, if needed, stops the server, updates it, and starts it again" - echo "forceupdate Apply update without check the current version" - echo "checkupdate Check for a new ARK server version" - echo "safeupdate Wait for server to perform world save and update." - echo "boradcast PLACEHOLDER, not supported yet" - echo "status Returns the status of the current ARK server instance" - echo "upgrade Check for a new ARK Server Tools version and upgrades it if needed" + echo "Option Description" + echo "backup Saves a backup of your server inside the backup directory" + echo "checkupdate Check for a new ARK server version" + echo "install Install the ARK server files from steamcmd" + 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 "upgrade Check for a new ARK Server Tools version and upgrades it if needed" ;; *) echo "arkmanager v${arkstVersion}: no command specified"