forked from github/server
fix LUA_PATH for run-eressea.cron
This commit is contained in:
parent
7d434323a7
commit
87a08ad8ba
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
eval "$(luarocks path)"
|
||||
export LUA_PATH="${ERESSEA}/server/scripts/?.lua;$LUA_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
|
||||
|
|
Loading…
Reference in New Issue