shlib.sh: make sure sendmail.pl config is set
commitc6b6f5cac34c38f8b8f4384be0898cbe35f88a8d
authorKyle J. McKay <mackyle@gmail.com>
Thu, 22 Sep 2016 10:02:40 +0000 (22 03:02 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 22 Sep 2016 10:02:40 +0000 (22 03:02 -0700)
tree4175a577107e80623c8462f44ad92d0e6434aa4f
parente76990cf93d2fdb4a523007f92482821cdfc6f14
shlib.sh: make sure sendmail.pl config is set

It is possible to run various scripts that may end up mailing reults
without going through either jobd.pl or taskd.pl.

When sendmail.pl is set as the mailer (the default) and it has been
configured using environment variables in Config.pm, make sure those
same settings are available to shell scripts that are run outside of
job.pl/taskd.pl so that messages will be sent correctly.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Config.pm
shlib.sh