From 214494a322d9548c3512fe780ec32979930934cb Mon Sep 17 00:00:00 2001 From: TuRz4m Date: Wed, 13 Jul 2016 09:56:38 +0200 Subject: [PATCH] #12 : Fix Ark Server Tools errors on first start. --- arkmanager-system.cfg | 3 +++ run.sh | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/arkmanager-system.cfg b/arkmanager-system.cfg index 86a2945..b15199a 100644 --- a/arkmanager-system.cfg +++ b/arkmanager-system.cfg @@ -38,4 +38,7 @@ arkAutoUpdateOnStart="true" # set this to defaultinstance="main" +# We don't use the dots because it doesn't show. +progressDisplayType=spinner + source /ark/arkmanager.cfg diff --git a/run.sh b/run.sh index a6721af..55aa516 100644 --- a/run.sh +++ b/run.sh @@ -9,7 +9,7 @@ mkfifo /tmp/FIFO export TERM=linux function stop { - if [ ${BACKUPONSTOP} -eq 1 ]; then + if [ ${BACKUPONSTOP} -eq 1 ] && [ "$(ls -A server/ShooterGame/Saved/SavedArks)" ]; then echo "[Backup on stop]" arkmanager backup fi @@ -44,12 +44,15 @@ cp /home/steam/crontab /ark/template/crontab if [ ! -d /ark/server ] || [ ! -f /ark/server/arkversion ];then echo "No game files found. Installing..." + mkdir -p /ark/server/ShooterGame/Saved/SavedArks + mkdir -p /ark/server/ShooterGame/Content/Mods + mkdir -p /ark/server/ShooterGame/Binaries/Linux/ + touch /ark/server/ShooterGame/Binaries/Linux/ShooterGameServer arkmanager install # Create mod dir - mkdir /ark/server/ShooterGame/Content/Mods else - if [ ${BACKUPONSTART} -eq 1 ]; then + if [ ${BACKUPONSTART} -eq 1 ] && [ "$(ls -A server/ShooterGame/Saved/SavedArks/)" ]; then echo "[Backup]" arkmanager backup fi