Improved error handling of mythorphans cron job.

This commit is contained in:
Timo Mkinen 2010-08-25 10:27:30 +03:00
parent b9a3be4338
commit 75cc35f180

View file

@ -1,8 +1,9 @@
#!/bin/sh #!/bin/sh
# read in configs # read in configs
MYTHVERSION="`rpm -q --queryformat='%{VERSION}\n' mythtv-docs`" || \
echo "mythtv-docs package not installed" 1>&2 ; exit 1
. /etc/mythtv/mysql.txt . /etc/mythtv/mysql.txt
MYTHVERSION="`rpm -q --queryformat='%{VERSION}\n' mythtv-docs`"
if [ -z "${LocalHostName}" ]; then if [ -z "${LocalHostName}" ]; then
LocalHostName=`hostname` LocalHostName=`hostname`