From 56bef478ed35478a459b3ce5e1f60c22281e70de Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Thu, 18 Apr 2024 16:17:26 +0200 Subject: [PATCH] add set -e to all scripts. --- puppetdb/docker-entrypoint.d/10-wait-for-hosts.sh | 4 +++- puppetdb/docker-entrypoint.d/20-configure-ssl.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/puppetdb/docker-entrypoint.d/10-wait-for-hosts.sh b/puppetdb/docker-entrypoint.d/10-wait-for-hosts.sh index 716714240..45ffa4933 100755 --- a/puppetdb/docker-entrypoint.d/10-wait-for-hosts.sh +++ b/puppetdb/docker-entrypoint.d/10-wait-for-hosts.sh @@ -1,5 +1,7 @@ #!/bin/sh -# + +set -e + # Wait on hosts to become available before proceeding # # diff --git a/puppetdb/docker-entrypoint.d/20-configure-ssl.sh b/puppetdb/docker-entrypoint.d/20-configure-ssl.sh index 6a6735f37..df38bf8fc 100755 --- a/puppetdb/docker-entrypoint.d/20-configure-ssl.sh +++ b/puppetdb/docker-entrypoint.d/20-configure-ssl.sh @@ -1,9 +1,9 @@ #!/bin/sh +set -e + # when certs need to be generated and haven't been user supplied if [ "$USE_PUPPETSERVER" = true ]; then - set -e - # previously DNS_ALT_NAMES was omitted if empty, but ssl.sh already skips setting when empty DNS_ALT_NAMES="${DNS_ALT_NAMES}" CERTNAME="$CERTNAME" /ssl.sh