aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-02-28 17:32:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-02-28 17:32:24 -0300
commitd6546ad0d7ecc05744898404382acc9904bcdfe8 (patch)
treef53d2802956def2e0611122671821f5d4ba674be
parent2c4354e34d1580bca4a78a8063e1247a92648660 (diff)
downloadhydra-d6546ad0d7ecc05744898404382acc9904bcdfe8.tar.gz
hydra-d6546ad0d7ecc05744898404382acc9904bcdfe8.tar.bz2
Run backup-check just if there's a backup handler
-rwxr-xr-xshare/hydractl/backup-check4
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