diff --git a/db/entrypoint.bash b/db/entrypoint.bash index 3fd367e26..c8ca5c3d3 100755 --- a/db/entrypoint.bash +++ b/db/entrypoint.bash @@ -4,13 +4,8 @@ if [ "${DEBUG}" = "true" ]; then set -xEeo pipefail fi -if [ -z "${PG_ENCRYPT_KEY}" ]; then - echo "\$PG_ENCRYPT_KEY must be set and non-empty." - exit 1 -fi - if [ "$1" = "postgres" ]; then shift fi -exec /usr/local/bin/postgres-entrypoint.sh postgres -c encrypt.key="${PG_ENCRYPT_KEY}" "$@" +exec /usr/local/bin/postgres-entrypoint.sh postgres -c encrypt.key="${PG_ENCRYPT_KEY?:\$PG_ENCRYPT_KEY must be set and non-empty}" "$@"