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 #!/bin/bash
set -o pipefail set -eux pipefail
function main() { function main() {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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