From 2bf5e3efc491828893b8794c981d601989ebbd90 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 3 Nov 2023 11:12:54 +0100 Subject: [PATCH] fail on install error --- infrastructure/docker-backup/image/resources/backup.sh | 2 +- infrastructure/docker-backup/image/resources/install.sh | 2 ++ .../docker-backup/image/resources/restic-snapshots.sh | 2 +- infrastructure/docker-backup/image/resources/restore.sh | 2 +- infrastructure/docker-jira/image/resources/install.sh | 2 ++ 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/infrastructure/docker-backup/image/resources/backup.sh b/infrastructure/docker-backup/image/resources/backup.sh index 5a6a066..1ddb71d 100755 --- a/infrastructure/docker-backup/image/resources/backup.sh +++ b/infrastructure/docker-backup/image/resources/backup.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -o pipefail +set -eux pipefail function main() { file_env AWS_ACCESS_KEY_ID diff --git a/infrastructure/docker-backup/image/resources/install.sh b/infrastructure/docker-backup/image/resources/install.sh index 1a8cbd7..9b92c43 100755 --- a/infrastructure/docker-backup/image/resources/install.sh +++ b/infrastructure/docker-backup/image/resources/install.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -eux + apt-get update > /dev/null; install -m 0700 /tmp/entrypoint.sh / diff --git a/infrastructure/docker-backup/image/resources/restic-snapshots.sh b/infrastructure/docker-backup/image/resources/restic-snapshots.sh index ca889ce..ed2c6f1 100755 --- a/infrastructure/docker-backup/image/resources/restic-snapshots.sh +++ b/infrastructure/docker-backup/image/resources/restic-snapshots.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -o pipefail +set -eux pipefail function main() { file_env AWS_ACCESS_KEY_ID diff --git a/infrastructure/docker-backup/image/resources/restore.sh b/infrastructure/docker-backup/image/resources/restore.sh index a4828ad..e9d7d3f 100755 --- a/infrastructure/docker-backup/image/resources/restore.sh +++ b/infrastructure/docker-backup/image/resources/restore.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -Eeo pipefail +set -eux pipefail function main() { diff --git a/infrastructure/docker-jira/image/resources/install.sh b/infrastructure/docker-jira/image/resources/install.sh index c9d15af..54577c7 100755 --- a/infrastructure/docker-jira/image/resources/install.sh +++ b/infrastructure/docker-jira/image/resources/install.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -eux pipefail + function main() { upgradeSystem