From: Chris Koeritz Date: Tue, 7 Feb 2017 17:47:52 +0000 (-0500) Subject: use CRONUSER if USER is blank X-Git-Tag: 2.140.90~213 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=e1de9292f1edd90061f61d132afddf8cb12a12ee;p=feisty_meow.git use CRONUSER if USER is blank --- diff --git a/scripts/core/launch_feisty_meow.sh b/scripts/core/launch_feisty_meow.sh index db00c382..b5a7b2f0 100644 --- a/scripts/core/launch_feisty_meow.sh +++ b/scripts/core/launch_feisty_meow.sh @@ -18,6 +18,13 @@ ############## +# patch the user variable if we were launched by one of our cron jobs. +if [ -z "$USER" -a ! -z "$CRONUSER" ]; then + export USER="$CRONUSER" +fi + +############## + export ERROR_OCCURRED= # there have been no errors to start with, at least. we will set this # to non-empty if something bad happens.