backup with orders after the turn is done

This commit is contained in:
Enno Rehling 2014-12-28 17:27:49 +01:00
parent df3ce116a7
commit 50aa3cc444
1 changed files with 6 additions and 4 deletions

View File

@ -26,15 +26,17 @@ if [ ! -s $ERESSEA/game-$GAME/orders.$TURN ]; then
echo "server did not create orders for turn $TURN in game $GAME"
exit 2
fi
if [ ! -s $REPORTS/reports.txt ]; then
echo "server did not create reports.txt in game $GAME"
exit 4
fi
$BIN/backup-eressea $GAME $TURN
let TURN=$TURN+1
if [ ! -s $ERESSEA/game-$GAME/data/$TURN.dat ]; then
echo "server did not create data for turn $TURN in game $GAME"
exit 3
fi
if [ ! -s $REPORTS/reports.txt ]; then
echo "server did not create reports.txt for turn $TURN in game $GAME"
exit 4
fi
echo "sending reports for game $GAME, turn $TURN"
$BIN/compress.sh $GAME $TURN
$BIN/sendreports.sh $GAME
$BIN/backup-eressea $GAME $TURN