Import .profile into runner.sh.

So that it has access to the right environment
when run by cron.
This commit is contained in:
D. Berge
2020-08-31 12:57:55 +02:00
parent 54a717dc91
commit c32c408d12

View File

@@ -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
} }