fix lockfile handling by the cron

This commit is contained in:
Enno Rehling 2014-12-12 18:15:06 +01:00
parent b4e13b7cbd
commit 1a888b4c87
1 changed files with 3 additions and 0 deletions

View File

@ -13,12 +13,15 @@ if [ -d $REPORTS ]; then
fi
mkdir $REPORTS
$BIN/backup-eressea $GAME
cd $ERESSEA/game-$GAME
if [ -d test ]; then
touch test/execute.lock
fi
rm -f execute.lock
$BIN/run-turn $GAME
touch execute.lock
if [ ! -s $ERESSEA/game-$GAME/orders.$TURN ]; then
echo "server did not create orders for turn $TURN in game $GAME"
exit 2