Skip to content

Commit

Permalink
Test build for #430
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak authored and SUSE Update Bot committed Jun 5, 2023
1 parent 28288b4 commit 50996ac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion postgres-12-image/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ docker_init_database_dir() {
set -- --waldir "$POSTGRES_INITDB_WALDIR" "$@"
fi

[ -z "$POSTGRES_HOST_AUTH_METHOD" ] || AUTH_ARGS="--auth=${POSTGRES_HOST_AUTH_METHOD}"

# --pwfile refuses to handle a properly-empty file (hence the "\n"): https://github.com/docker-library/postgres/issues/1025
eval 'initdb --username="$POSTGRES_USER" --pwfile=<(printf "%s\n" "$POSTGRES_PASSWORD") '"$POSTGRES_INITDB_ARGS"' "$@"'
eval 'initdb --username="$POSTGRES_USER" --pwfile=<(printf "%s\n" "$POSTGRES_PASSWORD") $AUTH_ARGS '"$POSTGRES_INITDB_ARGS"' "$@"'

# unset/cleanup "nss_wrapper" bits
if [[ "${LD_PRELOAD:-}" == */libnss_wrapper.so ]]; then
Expand Down
4 changes: 3 additions & 1 deletion postgres-13-image/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ docker_init_database_dir() {
set -- --waldir "$POSTGRES_INITDB_WALDIR" "$@"
fi

[ -z "$POSTGRES_HOST_AUTH_METHOD" ] || AUTH_ARGS="--auth=${POSTGRES_HOST_AUTH_METHOD}"

# --pwfile refuses to handle a properly-empty file (hence the "\n"): https://github.com/docker-library/postgres/issues/1025
eval 'initdb --username="$POSTGRES_USER" --pwfile=<(printf "%s\n" "$POSTGRES_PASSWORD") '"$POSTGRES_INITDB_ARGS"' "$@"'
eval 'initdb --username="$POSTGRES_USER" --pwfile=<(printf "%s\n" "$POSTGRES_PASSWORD") $AUTH_ARGS '"$POSTGRES_INITDB_ARGS"' "$@"'

# unset/cleanup "nss_wrapper" bits
if [[ "${LD_PRELOAD:-}" == */libnss_wrapper.so ]]; then
Expand Down
4 changes: 3 additions & 1 deletion postgres-14-image/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ docker_init_database_dir() {
set -- --waldir "$POSTGRES_INITDB_WALDIR" "$@"
fi

[ -z "$POSTGRES_HOST_AUTH_METHOD" ] || AUTH_ARGS="--auth=${POSTGRES_HOST_AUTH_METHOD}"

# --pwfile refuses to handle a properly-empty file (hence the "\n"): https://github.com/docker-library/postgres/issues/1025
eval 'initdb --username="$POSTGRES_USER" --pwfile=<(printf "%s\n" "$POSTGRES_PASSWORD") '"$POSTGRES_INITDB_ARGS"' "$@"'
eval 'initdb --username="$POSTGRES_USER" --pwfile=<(printf "%s\n" "$POSTGRES_PASSWORD") $AUTH_ARGS '"$POSTGRES_INITDB_ARGS"' "$@"'

# unset/cleanup "nss_wrapper" bits
if [[ "${LD_PRELOAD:-}" == */libnss_wrapper.so ]]; then
Expand Down
4 changes: 3 additions & 1 deletion postgres-15-image/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ docker_init_database_dir() {
set -- --waldir "$POSTGRES_INITDB_WALDIR" "$@"
fi

[ -z "$POSTGRES_HOST_AUTH_METHOD" ] || AUTH_ARGS="--auth=${POSTGRES_HOST_AUTH_METHOD}"

# --pwfile refuses to handle a properly-empty file (hence the "\n"): https://github.com/docker-library/postgres/issues/1025
eval 'initdb --username="$POSTGRES_USER" --pwfile=<(printf "%s\n" "$POSTGRES_PASSWORD") '"$POSTGRES_INITDB_ARGS"' "$@"'
eval 'initdb --username="$POSTGRES_USER" --pwfile=<(printf "%s\n" "$POSTGRES_PASSWORD") $AUTH_ARGS '"$POSTGRES_INITDB_ARGS"' "$@"'

# unset/cleanup "nss_wrapper" bits
if [[ "${LD_PRELOAD:-}" == */libnss_wrapper.so ]]; then
Expand Down

0 comments on commit 50996ac

Please sign in to comment.