fix crontab

This commit is contained in:
Enno Rehling 2015-02-22 16:04:33 +01:00
parent e31737db7c
commit 8e34658a6f
2 changed files with 8 additions and 8 deletions

View File

@ -3,8 +3,8 @@
PATH=/home/eressea/bin:/opt/bin:/usr/local/bin:/usr/bin:/bin
ERESSEA=/home/eressea/eressea
ATLANTIS=/home/eressea/atlantis
ENABLED=no
PREVIEW=no
ENABLED=yes
PREVIEW=yes
CONFIRM=yes
# m h dom mon dow command
@ -14,5 +14,5 @@ CONFIRM=yes
15 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 3
25 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 4
35 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 2
39 08 * * Sun [ "$PREVIEW" = "yes" ] && $ERESSEA/server/bin/previews.cron
39 08 * * Sun [ "$PREVIEW" = "yes" ] && $ERESSEA/server/bin/preview.cron
*/5 * * * * [ "$CONFIRM" = "yes" ] && $ERESSEA/server/bin/orders.cron 2 3 4

View File

@ -5,10 +5,10 @@ branch="develop"
if [ -e ${ERESSEA}/build/.preview ]; then
branch=`cat ${ERESSEA}/build/.preview`
fi
BIN=${ERESSEA}/server/s
${BIN}/preview build ${branch} || exit $?
${BIN}/preview version
SRC=${ERESSEA}/git
${SRC}/s/preview build ${branch} || exit $?
${SRC}/s/preview version
for game in 2 3 4 ; do
${BIN}/preview -g ${game} run && \
${BIN}/preview -g ${game} send
${SRC}/s/preview -g ${game} run && \
${SRC}/s/preview -g ${game} send
done