Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Oct 26, 2023
1 parent 17ac63b commit dc183fd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions db/entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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}" "$@"

0 comments on commit dc183fd

Please sign in to comment.