diff options
Diffstat (limited to 'abs/core/LinHES-system/myth_mtc.cron')
-rwxr-xr-x | abs/core/LinHES-system/myth_mtc.cron | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/abs/core/LinHES-system/myth_mtc.cron b/abs/core/LinHES-system/myth_mtc.cron index ff8e84a..6d70058 100755 --- a/abs/core/LinHES-system/myth_mtc.cron +++ b/abs/core/LinHES-system/myth_mtc.cron @@ -1,5 +1,6 @@ #!/bin/bash MYTH_RUN_STATUS=1 +. /etc/systemconfig . /etc/profile date=`date +%Y-%m-%d` @@ -31,13 +32,19 @@ then if ! grep -q "Finished Optimize" $logFile then - MYTHCONFDIR=/usr/share/mythtv unbuffer myth_mtc.py --optimize | $log - if [ $? = 0 ] + if [ $SystemType = Frontend_only ] then - echo "" | $log + echo "Will not run Optimize on Frontend Only systems." | $log + echo "Finished Optimize" | $log else - echo "Time Exceeded" | $log - exit + MYTHCONFDIR=/usr/share/mythtv unbuffer myth_mtc.py --optimize | $log + if [ $? = 0 ] + then + echo "" | $log + else + echo "Time Exceeded" | $log + exit + fi fi fi |