Browse Source

#12 : Fix Ark Server Tools errors on first start.

tags/1.3
TuRz4m 3 years ago
parent
commit
214494a322
2 changed files with 9 additions and 3 deletions
  1. 3
    0
      arkmanager-system.cfg
  2. 6
    3
      run.sh

+ 3
- 0
arkmanager-system.cfg View File

@@ -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

+ 6
- 3
run.sh View File

@@ -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

Loading…
Cancel
Save