fail on install error

This commit is contained in:
Michael Jerger 2023-11-03 11:13:40 +01:00
parent c931e36a0a
commit 96b8b6a448
10 changed files with 14 additions and 7 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -o pipefail
set -eux pipefail
function main() {

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -x
set -eux pipefail
if test -f "/var/backups/config/config.orig"; then

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -eux pipefail
function main() {
file_env POSTGRES_DB
file_env POSTGRES_PASSWORD

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -eux pipefail
function main() {
file_env AWS_ACCESS_KEY_ID
file_env AWS_SECRET_ACCESS_KEY

View file

@ -1,5 +1,7 @@
#!/bin/bash
set -eux pipefail
install -m 0700 /tmp/entrypoint.sh /
install -m 0700 /tmp/entrypoint-start-and-wait.sh /

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -o pipefail
set -eux pipefail
function list-snapshot-files() {
if [ -z ${CERTIFICATE_FILE} ];

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -Eeox pipefail
set -eux pipefail
function main() {
local role_snapshot_id="${1:-latest}"

View file

@ -1,6 +1,6 @@
#!/bin/bash
set -x
set -eux pipefail
if [ ! -f "/var/backups/config/config.orig" ]; then

View file

@ -1,5 +1,6 @@
#!/bin/sh
set -eu
set -eux pipefail
# version_greater A B returns whether A > B
version_greater() {

View file

@ -1,5 +1,5 @@
#!/bin/bash
set -Eeo pipefail
set -eux pipefail
apt update && apt -qqy install postgresql-client > /dev/null