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

This commit is contained in:
TuRz4m 2016-07-13 09:56:38 +02:00
parent 119915c382
commit 214494a322
2 changed files with 9 additions and 3 deletions

View file

@ -38,4 +38,7 @@ arkAutoUpdateOnStart="true" # set this to
defaultinstance="main" defaultinstance="main"
# We don't use the dots because it doesn't show.
progressDisplayType=spinner
source /ark/arkmanager.cfg source /ark/arkmanager.cfg

9
run.sh
View file

@ -9,7 +9,7 @@ mkfifo /tmp/FIFO
export TERM=linux export TERM=linux
function stop { function stop {
if [ ${BACKUPONSTOP} -eq 1 ]; then if [ ${BACKUPONSTOP} -eq 1 ] && [ "$(ls -A server/ShooterGame/Saved/SavedArks)" ]; then
echo "[Backup on stop]" echo "[Backup on stop]"
arkmanager backup arkmanager backup
fi fi
@ -44,12 +44,15 @@ cp /home/steam/crontab /ark/template/crontab
if [ ! -d /ark/server ] || [ ! -f /ark/server/arkversion ];then if [ ! -d /ark/server ] || [ ! -f /ark/server/arkversion ];then
echo "No game files found. Installing..." 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 arkmanager install
# Create mod dir # Create mod dir
mkdir /ark/server/ShooterGame/Content/Mods
else else
if [ ${BACKUPONSTART} -eq 1 ]; then if [ ${BACKUPONSTART} -eq 1 ] && [ "$(ls -A server/ShooterGame/Saved/SavedArks/)" ]; then
echo "[Backup]" echo "[Backup]"
arkmanager backup arkmanager backup
fi fi