From d53d3d9e12951d62155782757d8ceec667a51e0b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 28 Feb 2021 16:02:09 +0100 Subject: [PATCH] set LUA_PATH for cron jobs --- process/cron/preview.cron | 2 ++ process/cron/run-eressea.cron | 1 + 2 files changed, 3 insertions(+) diff --git a/process/cron/preview.cron b/process/cron/preview.cron index 04869c2f2..922b5960d 100755 --- a/process/cron/preview.cron +++ b/process/cron/preview.cron @@ -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") diff --git a/process/cron/run-eressea.cron b/process/cron/run-eressea.cron index aa3ed287b..448e44209 100755 --- a/process/cron/run-eressea.cron +++ b/process/cron/run-eressea.cron @@ -1,6 +1,7 @@ #!/bin/bash eval "$(luarocks path)" +export LUA_PATH="${ERESSEA}/server/scripts/?.lua;$LUA_PATH" GAME=$1 ( [ "$ENABLED" == "no" ] && exit