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"
|
[ -z "${ERESSEA}" ] && ERESSEA="$HOME/eressea"
|
||||||
|
|
||||||
eval "$(luarocks path)"
|
eval "$(luarocks path)"
|
||||||
|
export LUA_PATH="${ERESSEA}/git/scripts/?.lua;$LUA_PATH"
|
||||||
|
|
||||||
branch="develop"
|
branch="develop"
|
||||||
if [ -e "${ERESSEA}/build/.preview" ]; then
|
if [ -e "${ERESSEA}/build/.preview" ]; then
|
||||||
branch=$(cat "${ERESSEA}/build/.preview")
|
branch=$(cat "${ERESSEA}/build/.preview")
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
eval "$(luarocks path)"
|
eval "$(luarocks path)"
|
||||||
|
export LUA_PATH="${ERESSEA}/server/scripts/?.lua;$LUA_PATH"
|
||||||
GAME=$1
|
GAME=$1
|
||||||
(
|
(
|
||||||
[ "$ENABLED" == "no" ] && exit
|
[ "$ENABLED" == "no" ] && exit
|
||||||
|
|
Loading…
Reference in a new issue