#12 : Fix Ark Server Tools errors on first start.
This commit is contained in:
parent
119915c382
commit
214494a322
2 changed files with 9 additions and 3 deletions
|
@ -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
run.sh
9
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
|
||||
|
|
Loading…
Reference in a new issue