diff --git a/playbooks/roles/borg-backup-server/files/verify-borg-backups.sh b/playbooks/roles/borg-backup-server/files/verify-borg-backups.sh index 88061e3b2f..7ee1614bd1 100644 --- a/playbooks/roles/borg-backup-server/files/verify-borg-backups.sh +++ b/playbooks/roles/borg-backup-server/files/verify-borg-backups.sh @@ -1,5 +1,9 @@ #!/bin/bash +# When under cron, SHELL can bin /bin/sh which the "sudo -s" below +# obeys. Let's just use bash. +export SHELL=/bin/bash + pushd /opt/backups for u in borg-*; do