If mythtv-update-motd is run via interactive shell, always try to run,
regardless of the flags.
+ Provide, hopefully sane, defaults in health-check.
+
2023-07-27 Andrew Ruthven
Install the systemd files into the UsrMerge location so we'll work with
more distributions, thanks to Göran Uddeborgfor pointing this out.
. /etc/default/mythtv-status
-if [ "$EMAIL" = "" ] || [ "$EMAIL" = "none" ]
+if [ "$EMAIL" = "none" ]
then
exit
fi
-/usr/bin/mythtv-status --host "${HOST:-localhost}" --email "$EMAIL" "$EMAIL_ARGS"
+/usr/bin/mythtv-status --host "${HOST:-localhost}" --email "${EMAIL:-root}" "${EMAIL_ARGS:---email-only-on-alert}"
# Keep things happy by always having a return code of 0.
exit 0
# EMAIL:
# A comma separated list of email address to send status emails to.
#
-# Set to none (or leave empty) to disable daily emails.
+# Set to none to disable daily emails, if empty then default to root.
EMAIL=$EMAIL
# EMAIL_ARGS: