diff options
Diffstat (limited to 'abs/core/xymon/hobbit-myth-orphan.sh')
-rw-r--r-- | abs/core/xymon/hobbit-myth-orphan.sh | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/abs/core/xymon/hobbit-myth-orphan.sh b/abs/core/xymon/hobbit-myth-orphan.sh index ff91fb5..5f7c7ba 100644 --- a/abs/core/xymon/hobbit-myth-orphan.sh +++ b/abs/core/xymon/hobbit-myth-orphan.sh @@ -1,5 +1,5 @@ #!/bin/bash -TMPFILE=/tmp/oprhan.result +TMPFILE=/tmp/orphan.result MYTHCONFDIR=/usr/share/mythtv /usr/LH/bin/find_orphans.py --printonly > $TMPFILE COLUMN=orphan # Name of the column @@ -12,18 +12,25 @@ for i in "Orphaned video files" "Orphaned snapshots" "Database backups" "Other f do grep -q "$i" $TMPFILE status=$? - if [ $status -eq 0 ] + if [[ $status -eq 0 ]] && [[ $i == "Database backups" ]] + then + MSG="$i" + elif [ $status -eq 0 ] then COLOR="yellow" - MSG="Problems with $i" + MSG="Problems with" fi done -if [[ $MSG != "No Orphans Found." ]] +if [[ $MSG == "Database backups" ]] then MSG=" - ${MSG} - `cat $TMPFILE` +`cat $TMPFILE` +" +elif [[ $MSG != "No Orphans Found." ]] +then +MSG=" +${MSG} `cat $TMPFILE` <b>From <a href="/shell/" target="_blank">System >> Terminal</a> run find_orphans.py to clean up these issues.</b> " |