#!/bin/sh
# Copyright (c) 2007-2023 Andrew Ruthven <andrew@etc.gen.nz>
# This code is hereby licensed for public consumption under the GNU GPL v3.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#
# Run mythtv-status to perform a health check of the MythTV system.

. /etc/default/mythtv-status

if [ "$EMAIL" = "" ] || [ "$EMAIL" = "none" ]
then
  exit
fi

/usr/bin/mythtv-status --host "$HOST" --email "$EMAIL" "$EMAIL_ARGS"

# Keep things happy by always having a return code of 0.
exit 0
