From d4c299eaf419b3a85996e30bf1b83bcaa98d0acc Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 1 May 2020 17:50:58 +0200 Subject: [PATCH] use the luarocks path in cron scripts --- process/cron/preview.cron | 1 + process/cron/run-eressea.cron | 2 ++ 2 files changed, 3 insertions(+) diff --git a/process/cron/preview.cron b/process/cron/preview.cron index 63fe2ca76..5192d0f5a 100755 --- a/process/cron/preview.cron +++ b/process/cron/preview.cron @@ -3,6 +3,7 @@ [ "$PREVIEW" != "yes" ] && exit [ -z "${ERESSEA}" ] && ERESSEA="$HOME/eressea" +eval $(luarocks 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 697cc5e88..32ad873df 100755 --- a/process/cron/run-eressea.cron +++ b/process/cron/run-eressea.cron @@ -1,4 +1,6 @@ #!/bin/bash + +eval $(luarocks path) GAME=$1 ( [ "$ENABLED" != "yes" ] && exit