From 7b80d8b89c190d141e7cb1f5bd1138768c9d1522 Mon Sep 17 00:00:00 2001 From: Sispheor Date: Mon, 22 Jun 2015 21:44:12 +0200 Subject: [PATCH] fix install --- tools/arkmanager | 3 +-- tools/install.sh | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/arkmanager b/tools/arkmanager index bf2bd38..0128e93 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -189,8 +189,7 @@ doUpdate() { echo "$bnumber" > "$arkserverroot/arkversion" cd $steamcmdroot echo "$timestamp: update to $bnumber complete" >> "$logdir/update.log" - tail -n 1 "$logdir/arkserver.log" - + # we restart the server only if it was started before the update if [ $serverWasAlive -eq 1 ]; then doStart diff --git a/tools/install.sh b/tools/install.sh index 0de4d7b..24a34e7 100644 --- a/tools/install.sh +++ b/tools/install.sh @@ -9,7 +9,7 @@ if [ ! -z $1 ]; then cp arkdaemon /etc/init.d/arkdaemon chmod +x /etc/init.d/arkdaemon # add to startup if the system use sysinit - if [ test -x /usr/sbin/update-rc.d ]; then + if [ -x /usr/sbin/update-rc.d ]; then update-rc.d arkdaemon defaults echo "Ark server will now start on boot, if you want to remove this feature run the following line" echo "update-rc.d -f arkdaemon remove" @@ -21,9 +21,7 @@ if [ ! -z $1 ]; then # Copy arkmanager.cfg inside linux configuation folder if it doesn't already exists if [ -f /etc/arkmanager/arkmanager.cfg ]; then - mkdir -p /etc/arkmanager - if [ -f /etc/arkmanager/arkmanager.cfg ]; then - echo "A previous version of ARK Server Tools was detected in your system, your old configuration was not overwritten. You may need to manually update it."; + echo "A previous version of ARK Server Tools was detected in your system, your old configuration was not overwritten. You may need to manually update it." exit 2 else cp -n arkmanager.cfg /etc/arkmanager/arkmanager.cfg