diff options
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 |