set LUA_PATH for cron jobs

This commit is contained in:
Enno Rehling 2021-02-28 16:02:09 +01:00
parent 3df552676c
commit d53d3d9e12
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,8 @@
[ -z "${ERESSEA}" ] && ERESSEA="$HOME/eressea"
eval "$(luarocks path)"
export LUA_PATH="${ERESSEA}/git/scripts/?.lua;$LUA_PATH"
branch="develop"
if [ -e "${ERESSEA}/build/.preview" ]; then
branch=$(cat "${ERESSEA}/build/.preview")

View File

@ -1,6 +1,7 @@
#!/bin/bash
eval "$(luarocks path)"
export LUA_PATH="${ERESSEA}/server/scripts/?.lua;$LUA_PATH"
GAME=$1
(
[ "$ENABLED" == "no" ] && exit