use CRONUSER if USER is blank
authorChris Koeritz <fred@gruntose.com>
Tue, 7 Feb 2017 17:47:52 +0000 (12:47 -0500)
committerChris Koeritz <fred@gruntose.com>
Tue, 7 Feb 2017 17:47:52 +0000 (12:47 -0500)
scripts/core/launch_feisty_meow.sh

index db00c382eafa22b1c5005bc96ae00ab02d8b18b3..b5a7b2f0d8291294c19679bd14b369cf14ab3c3c 100644 (file)
 
 ##############
 
+# 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.