forked from github/server
set LUA_PATH for cron jobs
This commit is contained in:
parent
3df552676c
commit
d53d3d9e12
2 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
eval "$(luarocks path)"
|
||||
export LUA_PATH="${ERESSEA}/server/scripts/?.lua;$LUA_PATH"
|
||||
GAME=$1
|
||||
(
|
||||
[ "$ENABLED" == "no" ] && exit
|
||||
|
|
Loading…
Reference in a new issue