From 55ef946ea2375255354cd7b4c7550dff947109bd Mon Sep 17 00:00:00 2001 From: TuRz4m Date: Tue, 27 Oct 2015 10:55:32 +0100 Subject: [PATCH] Remove old auto-backup && old auto-update --- Dockerfile | 4 ---- run.sh | 20 +++++--------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18d846b..e353ee2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,10 +17,6 @@ ENV NBPLAYERS 70 ENV UPDATEONSTART 1 # if the server is backup when start with docker start ENV BACKUPONSTART 1 -# Nb minute between auto update (warm) (-1 : no auto update) -ENV AUTOUPDATE -1 -# Nb minute between auto backup (-1 : no auto backup) -ENV AUTOBACKUP -1 # branch on github for ark server tools ENV BRANCH master # Server PORT (you can't remap with docker, it doesn't work) diff --git a/run.sh b/run.sh index 382d994..580032f 100644 --- a/run.sh +++ b/run.sh @@ -7,16 +7,16 @@ mkfifo /tmp/FIFO export TERM=linux +# Creating directory tree && symbolic link [ ! -f /ark/arkmanager.cfg ] && cp /home/steam/arkmanager.cfg /ark/arkmanager.cfg [ ! -d /ark/log ] && mkdir /ark/log [ ! -d /ark/backup ] && mkdir /ark/backup - -#echo "Upgrade Ark server tools..." -#arkmanager upgrade-tools +[ ! -f /ark/Game.ini ] && ln -s /ark/server/ShooterGame/Saved/Config/Game.ini /ark/Game.ini +[ ! -f /ark/GameUserSetting.ini ] && ln -s /ark/server/ShooterGame/Saved/Config/GameUserSetting.ini /ark/GameUserSetting.ini -if [ ! -d "/ark/server" ] && [ ! -f "/ark/server/arkversion" ];then - echo "Install ark..." + +if [ ! -d "/ark/server" ] || [ ! -f "/ark/server/arkversion" ];then arkmanager install # Create mod dir mkdir /ark/server/ShooterGame/Content/Mods @@ -42,15 +42,5 @@ echo "Waiting..." trap 'arkmanager stop' INT trap 'arkmanager stop' TERM -# Auto update every $AUTOUPDATE minutes -if [ $AUTOUPDATE -gt 0 ]; then - while :; do sleep $(($AUTOUPDATE * 60)); echo "[`date +'%y/%m/%d %H:%M'`] [Auto-Update]"; arkmanager update --warn --update-mods --backup ; done & -fi - -# Auto backup every $AUTOBACKUP minutes -if [ $AUTOBACKUP -gt 0 ]; then - while :; do sleep $(($AUTOBACKUP * 60)); echo "[`date +'%Y/%m/%d %H:%M'`] [Auto-Backup]"; arkmanager backup ; done & -fi - read < /tmp/FIFO & wait