fix LUA_PATH for run-eressea.cron

This commit is contained in:
Enno Rehling 2021-03-06 21:29:36 +01:00
parent 026bcb22cb
commit 1d353fdc2a
1 changed files with 2 additions and 1 deletions

View File

@ -1,12 +1,13 @@
#!/bin/bash
eval "$(luarocks path)"
GAME=$1
(
[ "$ENABLED" == "no" ] && exit
[ -z "$ERESSEA" ] && ERESSEA="$HOME/eressea"
export ERESSEA
eval "$(luarocks path)"
export LUA_PATH="${ERESSEA}/server/scripts/?.lua;$LUA_PATH"
BIN="$ERESSEA/server/bin"
TURN=$(cat "$ERESSEA/game-$GAME/turn")
if [ ! -e "$ERESSEA/game-$GAME/data/$TURN.dat" ]; then