diff --git a/game-e2/config.xml b/game-e2/config.xml index 72c1563ab..1696f8f58 100644 --- a/game-e2/config.xml +++ b/game-e2/config.xml @@ -20,6 +20,7 @@ + diff --git a/game-e3/config.xml b/game-e3/config.xml index 5b3ea01bc..84c2f4685 100644 --- a/game-e3/config.xml +++ b/game-e3/config.xml @@ -13,6 +13,7 @@ + diff --git a/process/cron/run-eressea b/process/cron/run-eressea index afd019018..d8627efcb 100755 --- a/process/cron/run-eressea +++ b/process/cron/run-eressea @@ -1,14 +1,14 @@ -#!/bin/sh +#!/bin/bash GAME=$1 BIN=$HOME/bin export ERESSEA=$HOME/eressea export PATH -TURN=$(cat $ERESSEA/game-$GAME) +TURN=$(cat $ERESSEA/game-$GAME/turn) if [ ! -e $ERESSEA/game-$GAME/data/$TURN.dat ]; then echo "data file $TURN is missing, cannot run turn for game $GAME" exit 1 fi -$REPORTS=$ERESSEA/game-$GAME/reports +REPORTS=$ERESSEA/game-$GAME/reports if [ -d $REPORTS ]; then rm -rf $REPORTS fi @@ -18,7 +18,7 @@ if [ ! -s $ERESSEA/game-$GAME/orders.$TURN ]; then echo "server did not create orders for turn $TURN in game $GAME" exit 2 fi -LET TURN=$TURN+1 +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