forked from github/server
fix crontab
This commit is contained in:
parent
ffbfdee4ff
commit
da84808661
|
@ -3,8 +3,8 @@
|
||||||
PATH=/home/eressea/bin:/opt/bin:/usr/local/bin:/usr/bin:/bin
|
PATH=/home/eressea/bin:/opt/bin:/usr/local/bin:/usr/bin:/bin
|
||||||
ERESSEA=/home/eressea/eressea
|
ERESSEA=/home/eressea/eressea
|
||||||
ATLANTIS=/home/eressea/atlantis
|
ATLANTIS=/home/eressea/atlantis
|
||||||
ENABLED=no
|
ENABLED=yes
|
||||||
PREVIEW=no
|
PREVIEW=yes
|
||||||
CONFIRM=yes
|
CONFIRM=yes
|
||||||
|
|
||||||
# m h dom mon dow command
|
# m h dom mon dow command
|
||||||
|
@ -14,5 +14,5 @@ CONFIRM=yes
|
||||||
15 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 3
|
15 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 3
|
||||||
25 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 4
|
25 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 4
|
||||||
35 21 * * Sat [ "$ENABLED" = "yes" ] && $ERESSEA/server/bin/run-eressea.cron 2
|
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 * * * * [ "$CONFIRM" = "yes" ] && $ERESSEA/server/bin/orders.cron 2 3 4
|
||||||
|
|
|
@ -5,10 +5,10 @@ branch="develop"
|
||||||
if [ -e ${ERESSEA}/build/.preview ]; then
|
if [ -e ${ERESSEA}/build/.preview ]; then
|
||||||
branch=`cat ${ERESSEA}/build/.preview`
|
branch=`cat ${ERESSEA}/build/.preview`
|
||||||
fi
|
fi
|
||||||
BIN=${ERESSEA}/server/s
|
SRC=${ERESSEA}/git
|
||||||
${BIN}/preview build ${branch} || exit $?
|
${SRC}/s/preview build ${branch} || exit $?
|
||||||
${BIN}/preview version
|
${SRC}/s/preview version
|
||||||
for game in 2 3 4 ; do
|
for game in 2 3 4 ; do
|
||||||
${BIN}/preview -g ${game} run && \
|
${SRC}/s/preview -g ${game} run && \
|
||||||
${BIN}/preview -g ${game} send
|
${SRC}/s/preview -g ${game} send
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue