]> gitweb.fluxo.info Git - hydra.git/commitdiff
Run backup-check just if there's a backup handler
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 28 Feb 2014 20:32:24 +0000 (17:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 28 Feb 2014 20:32:24 +0000 (17:32 -0300)
share/hydractl/backup-check

index 93b6e0bdf38bb58f8d3bc408330ca14509abe7ac..a701c8f23a76c889e44ff6c583ec5f9e30858904 100755 (executable)
@@ -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