2023-07-27 Göran Uddebor
Install update-update-motd
+ Use a default for $HOST in all scripts.
+
2023-07-23 Andrew Ruthven
Release version 1.1.0.
exit
fi
-/usr/bin/mythtv-status --host "$HOST" --email "$EMAIL" "$EMAIL_ARGS"
+/usr/bin/mythtv-status --host "${HOST:-localhost}" --email "$EMAIL" "$EMAIL_ARGS"
# Keep things happy by always having a return code of 0.
exit 0
[ "$UPDATE_MOTD_ARGS" = "" ] && UPDATE_MOTD_ARGS=$ARGS
ret=0
-mythtv-status $UPDATE_MOTD_ARGS -h $HOST >> $TEMPFILE || ret=$?
+mythtv-status $UPDATE_MOTD_ARGS -h "${HOST:-localhost}" >> $TEMPFILE || ret=$?
if [ $ret -eq 0 ] || [ $ret -eq 1 ]; then
if [ ! -f $TEMPFILE ]; then
echo My temporary file has gone away, failed.