+mythtv-status (0.8.1-3) unstable; urgency=low
+
+ * A number of small changes to the /etc/default/mythtv-status file
+ to make it clearer which script uses which settings.
+ * Thank you to Tom Metro for the above suggestion.
+ * Fix the handling of EMAIL_ARGS in the postinst to honour it being
+ unset. Thank you to Tom for reporting the issue.
+
+ -- Andrew Ruthven <andrew@etc.gen.nz> Sat, 5 Jul 2008 21:15:00 +1200
+
mythtv-status (0.8.1-2) unstable; urgency=low
* Make sure that variables in /etc/default/mythtv-status that might
configure|reconfigure)
DEBIANCONFIG=/etc/default/$PACKAGE
+ # Default to --email-only-on-alert but allow it be unset in the config file.
+ EMAIL_ARGS="---email-only-on-alert"
+
# load current settings, most of which will be overwritten.
[ -f $DEBIANCONFIG ] && . $DEBIANCONFIG
db_get $PACKAGE/email
EMAIL="${RET:-none}"
- EMAIL_ARGS="${EMAIL_ARGS:---email-only-on-alert}"
-
cat <<_eof > $DEBIANCONFIG
# $PACKAGE Debian configuration
#
# You can run 'dpkg-reconfigure $PACKAGE' to modify the values in this
# file, if you want. You can also change the values here and changes will
-# be preserved.
+# be preserved. But other changes will not be preserved.
#
# Do note that only the values are preserved; the rest of the file is
# rewritten.
#
+# HOST:
+# What host should we check the status on?
+HOST=$HOST
+
+########################################################################
+# The following settings are used by /etc/init.d/mythtv-status script #
+# to update the MOTD. #
+########################################################################
+
# RUN:
# Should we actually run and update the MOTD?
RUN=$RUN
-# HOST:
-# What host should be check the status on?
-HOST=$HOST
-
# ARGS:
# Any extra arguments to pass to mythtv-status (i.e., -e and/or -d).
-# This is used by /etc/init.d/mythtv-status script.
ARGS="$ARGS"
+########################################################################
+# The following settings are used by the /etc/cron.daily/mythtv-status #
+# script when generating the daily status email report. #
+########################################################################
+
# EMAIL:
# A comma separated list of email address to send status emails to.
#
# EMAIL_ARGS:
# Command line arguments that are used when sending the daily email.
-# This is used by /etc/cron.daily/mythtv-status script.
EMAIL_ARGS="$EMAIL_ARGS"
_eof