Remove old auto-backup && old auto-update

This commit is contained in:
TuRz4m 2015-10-27 10:55:32 +01:00
parent e8514fe155
commit 55ef946ea2
2 changed files with 5 additions and 19 deletions

View file

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

20
run.sh
View file

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