Skip to content

Commit

Permalink
#12 : Fix Ark Server Tools errors on first start.
Browse files Browse the repository at this point in the history
  • Loading branch information
TuRz4m committed Jul 13, 2016
1 parent 119915c commit 214494a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions arkmanager-system.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 6 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 214494a

Please sign in to comment.