diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-02-28 17:32:24 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-02-28 17:32:24 -0300 |
commit | d6546ad0d7ecc05744898404382acc9904bcdfe8 (patch) | |
tree | f53d2802956def2e0611122671821f5d4ba674be /share/hydractl/backup-check | |
parent | 2c4354e34d1580bca4a78a8063e1247a92648660 (diff) | |
download | hydra-d6546ad0d7ecc05744898404382acc9904bcdfe8.tar.gz hydra-d6546ad0d7ecc05744898404382acc9904bcdfe8.tar.bz2 |
Run backup-check just if there's a backup handler
Diffstat (limited to 'share/hydractl/backup-check')
-rwxr-xr-x | share/hydractl/backup-check | 4 |
1 files changed, 3 insertions, 1 deletions
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 |