]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Borg: fix backup exit status
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 12 May 2019 19:25:19 +0000 (16:25 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 12 May 2019 19:25:19 +0000 (16:25 -0300)
templates/borg.sh.erb

index 652bfa01cbdbb209eecd8e208482ef4e71d1d5e3..736ad4f0d34ed54d6dd6a5144d2b83b134cb3fd7 100644 (file)
@@ -107,4 +107,6 @@ if [ ${global_exit} -gt 1 ]; then
   info "Backup and/or Prune finished with an error"
 fi
 
-exit ${global_exit}
+if [ "${global_exit}" != "0" ]; then
+  fatal "Error completing borg action: exit code ${global_exit}"
+fi