Skip to content

Commit 214494a

Browse files
committed
#12 : Fix Ark Server Tools errors on first start.
1 parent 119915c commit 214494a

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

arkmanager-system.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,7 @@ arkAutoUpdateOnStart="true" # set this to
3838

3939
defaultinstance="main"
4040

41+
# We don't use the dots because it doesn't show.
42+
progressDisplayType=spinner
43+
4144
source /ark/arkmanager.cfg

run.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mkfifo /tmp/FIFO
99
export TERM=linux
1010

1111
function stop {
12-
if [ ${BACKUPONSTOP} -eq 1 ]; then
12+
if [ ${BACKUPONSTOP} -eq 1 ] && [ "$(ls -A server/ShooterGame/Saved/SavedArks)" ]; then
1313
echo "[Backup on stop]"
1414
arkmanager backup
1515
fi
@@ -44,12 +44,15 @@ cp /home/steam/crontab /ark/template/crontab
4444

4545
if [ ! -d /ark/server ] || [ ! -f /ark/server/arkversion ];then
4646
echo "No game files found. Installing..."
47+
mkdir -p /ark/server/ShooterGame/Saved/SavedArks
48+
mkdir -p /ark/server/ShooterGame/Content/Mods
49+
mkdir -p /ark/server/ShooterGame/Binaries/Linux/
50+
touch /ark/server/ShooterGame/Binaries/Linux/ShooterGameServer
4751
arkmanager install
4852
# Create mod dir
49-
mkdir /ark/server/ShooterGame/Content/Mods
5053
else
5154

52-
if [ ${BACKUPONSTART} -eq 1 ]; then
55+
if [ ${BACKUPONSTART} -eq 1 ] && [ "$(ls -A server/ShooterGame/Saved/SavedArks/)" ]; then
5356
echo "[Backup]"
5457
arkmanager backup
5558
fi

0 commit comments

Comments
 (0)