server/process/run-turn
Enno Rehling a3ebddeae4 update cron to check environment for switches
use server/bin instead of ~/bin
2017-05-26 13:52:55 +02:00

17 lines
279 B
Bash
Executable file

#!/bin/sh
GAME=$1
TURN=$2
if [ ! -d $ERESSEA/game-$GAME ] ; then
echo "No such game: $GAME"
exit 1
fi
cd $ERESSEA/game-$GAME
echo "running turn $TURN, game $GAME"
$ERESSEA/server/bin/eressea -v3 -t $TURN run-turn.lua
mkdir -p log
ln -f eressea.log log/eressea.log.$TURN