forked from github/server
fix crontab
This commit is contained in:
parent
e31737db7c
commit
8e34658a6f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue