From 261506e92bcd201cb7776c75319f3445d488757e Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 16 Oct 2025 20:09:46 +0100 Subject: [PATCH] Fail backup script on failures --- cookbooks/blog/templates/default/backup-staging.cron.erb | 3 ++- cookbooks/blog/templates/default/backup.cron.erb | 3 ++- cookbooks/blogs/templates/default/backup.cron.erb | 3 ++- cookbooks/chef/templates/default/server-backup.cron.erb | 3 ++- cookbooks/civicrm/templates/default/backup.cron.erb | 3 ++- cookbooks/community/templates/default/backup.cron.erb | 3 ++- cookbooks/git/templates/default/backup.cron.erb | 3 ++- cookbooks/mailman/templates/default/backup.cron.erb | 3 ++- .../mediawiki/templates/default/mediawiki-backup.cron.erb | 3 ++- cookbooks/otrs/templates/default/backup.cron.erb | 3 ++- cookbooks/prometheus/templates/default/backup.cron.erb | 3 ++- cookbooks/stateofthemap/templates/default/backup.cron.erb | 3 ++- 12 files changed, 24 insertions(+), 12 deletions(-) diff --git a/cookbooks/blog/templates/default/backup-staging.cron.erb b/cookbooks/blog/templates/default/backup-staging.cron.erb index 071b85e0e..1aa47cb97 100644 --- a/cookbooks/blog/templates/default/backup-staging.cron.erb +++ b/cookbooks/blog/templates/default/backup-staging.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/blog/templates/default/backup.cron.erb b/cookbooks/blog/templates/default/backup.cron.erb index 2b9f31fd8..2f940ef7c 100644 --- a/cookbooks/blog/templates/default/backup.cron.erb +++ b/cookbooks/blog/templates/default/backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/blogs/templates/default/backup.cron.erb b/cookbooks/blogs/templates/default/backup.cron.erb index d0a8c13d3..38dbc0c6a 100644 --- a/cookbooks/blogs/templates/default/backup.cron.erb +++ b/cookbooks/blogs/templates/default/backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/chef/templates/default/server-backup.cron.erb b/cookbooks/chef/templates/default/server-backup.cron.erb index afb6db5b1..d5f612665 100644 --- a/cookbooks/chef/templates/default/server-backup.cron.erb +++ b/cookbooks/chef/templates/default/server-backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/civicrm/templates/default/backup.cron.erb b/cookbooks/civicrm/templates/default/backup.cron.erb index 5c667ec6d..b504e2ad3 100644 --- a/cookbooks/civicrm/templates/default/backup.cron.erb +++ b/cookbooks/civicrm/templates/default/backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/community/templates/default/backup.cron.erb b/cookbooks/community/templates/default/backup.cron.erb index b64abac00..b2ec3c83f 100644 --- a/cookbooks/community/templates/default/backup.cron.erb +++ b/cookbooks/community/templates/default/backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/git/templates/default/backup.cron.erb b/cookbooks/git/templates/default/backup.cron.erb index 2582b886e..2c9469028 100644 --- a/cookbooks/git/templates/default/backup.cron.erb +++ b/cookbooks/git/templates/default/backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/mailman/templates/default/backup.cron.erb b/cookbooks/mailman/templates/default/backup.cron.erb index 6d79de4b9..a1ccaf30a 100644 --- a/cookbooks/mailman/templates/default/backup.cron.erb +++ b/cookbooks/mailman/templates/default/backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/mediawiki/templates/default/mediawiki-backup.cron.erb b/cookbooks/mediawiki/templates/default/mediawiki-backup.cron.erb index 6cd775d9a..7abacd6d4 100755 --- a/cookbooks/mediawiki/templates/default/mediawiki-backup.cron.erb +++ b/cookbooks/mediawiki/templates/default/mediawiki-backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/otrs/templates/default/backup.cron.erb b/cookbooks/otrs/templates/default/backup.cron.erb index 2bea81908..d0bfd3b35 100644 --- a/cookbooks/otrs/templates/default/backup.cron.erb +++ b/cookbooks/otrs/templates/default/backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/prometheus/templates/default/backup.cron.erb b/cookbooks/prometheus/templates/default/backup.cron.erb index 5c5a8dc8d..d65b06554 100644 --- a/cookbooks/prometheus/templates/default/backup.cron.erb +++ b/cookbooks/prometheus/templates/default/backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 diff --git a/cookbooks/stateofthemap/templates/default/backup.cron.erb b/cookbooks/stateofthemap/templates/default/backup.cron.erb index 92295fd1a..4476c3819 100644 --- a/cookbooks/stateofthemap/templates/default/backup.cron.erb +++ b/cookbooks/stateofthemap/templates/default/backup.cron.erb @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/bash # DO NOT EDIT - This file is being maintained by Chef +set -euo pipefail export ZSTD_CLEVEL=11 export ZSTD_NBTHREADS=0 -- 2.39.5