Improved error handling of mythorphans cron job.
This commit is contained in:
parent
b9a3be4338
commit
75cc35f180
1 changed files with 2 additions and 1 deletions
|
@ -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`
|
||||||
|
|
Loading…
Add table
Reference in a new issue