mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:57:08 +00:00
Import .profile into runner.sh.
So that it has access to the right environment when run by cron.
This commit is contained in:
@@ -6,6 +6,8 @@ BINDIR="$DOUGAL_ROOT/bin"
|
|||||||
VARDIR=${VARDIR:-$DOUGAL_ROOT/var}
|
VARDIR=${VARDIR:-$DOUGAL_ROOT/var}
|
||||||
LOCKFILE=${LOCKFILE:-$VARDIR/runner.lock}
|
LOCKFILE=${LOCKFILE:-$VARDIR/runner.lock}
|
||||||
|
|
||||||
|
[ -f ~/.profile ] && . ~/.profile
|
||||||
|
|
||||||
function tstamp () {
|
function tstamp () {
|
||||||
date -u +%Y-%m-%dT%H:%M:%SZ
|
date -u +%Y-%m-%dT%H:%M:%SZ
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user