From: Silvio Rhatto Date: Fri, 28 Feb 2014 20:32:24 +0000 (-0300) Subject: Run backup-check just if there's a backup handler X-Git-Tag: 0.2.2~106 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d6546ad0d7ecc05744898404382acc9904bcdfe8;p=hydra.git Run backup-check just if there's a backup handler --- diff --git a/share/hydractl/backup-check b/share/hydractl/backup-check index 93b6e0b..a701c8f 100755 --- a/share/hydractl/backup-check +++ b/share/hydractl/backup-check @@ -22,4 +22,6 @@ if [ "`whoami`" != 'root' ]; then fi # Check backup status -$sudo /bin/bash /etc/backup.d/50_duplicity-localhost.sh --check +if $sudo ls /etc/backup.d/50_duplicity-localhost.sh &> /dev/null; then + $sudo /bin/bash /etc/backup.d/50_duplicity-localhost.sh --check +fi