forked from github/server
fix lockfile handling by the cron
This commit is contained in:
parent
b4e13b7cbd
commit
1a888b4c87
|
@ -13,12 +13,15 @@ if [ -d $REPORTS ]; then
|
||||||
fi
|
fi
|
||||||
mkdir $REPORTS
|
mkdir $REPORTS
|
||||||
$BIN/backup-eressea $GAME
|
$BIN/backup-eressea $GAME
|
||||||
|
|
||||||
|
cd $ERESSEA/game-$GAME
|
||||||
if [ -d test ]; then
|
if [ -d test ]; then
|
||||||
touch test/execute.lock
|
touch test/execute.lock
|
||||||
fi
|
fi
|
||||||
rm -f execute.lock
|
rm -f execute.lock
|
||||||
$BIN/run-turn $GAME
|
$BIN/run-turn $GAME
|
||||||
touch execute.lock
|
touch execute.lock
|
||||||
|
|
||||||
if [ ! -s $ERESSEA/game-$GAME/orders.$TURN ]; then
|
if [ ! -s $ERESSEA/game-$GAME/orders.$TURN ]; then
|
||||||
echo "server did not create orders for turn $TURN in game $GAME"
|
echo "server did not create orders for turn $TURN in game $GAME"
|
||||||
exit 2
|
exit 2
|
||||||
|
|
Loading…
Reference in New Issue