Remove old auto-backup && old auto-update
This commit is contained in:
parent
e8514fe155
commit
55ef946ea2
2 changed files with 5 additions and 19 deletions
|
@ -17,10 +17,6 @@ ENV NBPLAYERS 70
|
||||||
ENV UPDATEONSTART 1
|
ENV UPDATEONSTART 1
|
||||||
# if the server is backup when start with docker start
|
# if the server is backup when start with docker start
|
||||||
ENV BACKUPONSTART 1
|
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
|
# branch on github for ark server tools
|
||||||
ENV BRANCH master
|
ENV BRANCH master
|
||||||
# Server PORT (you can't remap with docker, it doesn't work)
|
# Server PORT (you can't remap with docker, it doesn't work)
|
||||||
|
|
20
run.sh
20
run.sh
|
@ -7,16 +7,16 @@ mkfifo /tmp/FIFO
|
||||||
|
|
||||||
export TERM=linux
|
export TERM=linux
|
||||||
|
|
||||||
|
# Creating directory tree && symbolic link
|
||||||
[ ! -f /ark/arkmanager.cfg ] && cp /home/steam/arkmanager.cfg /ark/arkmanager.cfg
|
[ ! -f /ark/arkmanager.cfg ] && cp /home/steam/arkmanager.cfg /ark/arkmanager.cfg
|
||||||
[ ! -d /ark/log ] && mkdir /ark/log
|
[ ! -d /ark/log ] && mkdir /ark/log
|
||||||
[ ! -d /ark/backup ] && mkdir /ark/backup
|
[ ! -d /ark/backup ] && mkdir /ark/backup
|
||||||
|
[ ! -f /ark/Game.ini ] && ln -s /ark/server/ShooterGame/Saved/Config/Game.ini /ark/Game.ini
|
||||||
#echo "Upgrade Ark server tools..."
|
[ ! -f /ark/GameUserSetting.ini ] && ln -s /ark/server/ShooterGame/Saved/Config/GameUserSetting.ini /ark/GameUserSetting.ini
|
||||||
#arkmanager upgrade-tools
|
|
||||||
|
|
||||||
|
|
||||||
if [ ! -d "/ark/server" ] && [ ! -f "/ark/server/arkversion" ];then
|
|
||||||
echo "Install ark..."
|
if [ ! -d "/ark/server" ] || [ ! -f "/ark/server/arkversion" ];then
|
||||||
arkmanager install
|
arkmanager install
|
||||||
# Create mod dir
|
# Create mod dir
|
||||||
mkdir /ark/server/ShooterGame/Content/Mods
|
mkdir /ark/server/ShooterGame/Content/Mods
|
||||||
|
@ -42,15 +42,5 @@ echo "Waiting..."
|
||||||
trap 'arkmanager stop' INT
|
trap 'arkmanager stop' INT
|
||||||
trap 'arkmanager stop' TERM
|
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 &
|
read < /tmp/FIFO &
|
||||||
wait
|
wait
|
||||||
|
|
Loading…
Reference in a new issue