1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Fix unset/cleanup "nss_wrapper" bits (#919)

original code didn't respect libnss-wrapper at other locations
This commit is contained in:
tobwen
2022-01-03 23:49:25 +01:00
committed by GitHub
parent f5225fd4fb
commit a83005b407
16 changed files with 16 additions and 16 deletions

View File

@ -91,7 +91,7 @@ docker_init_database_dir() {
eval 'initdb --username="$POSTGRES_USER" --pwfile=<(echo "$POSTGRES_PASSWORD") '"$POSTGRES_INITDB_ARGS"' "$@"'
# unset/cleanup "nss_wrapper" bits
if [ "${LD_PRELOAD:-}" = '/usr/lib/libnss_wrapper.so' ]; then
if [[ "${LD_PRELOAD:-}" == */libnss_wrapper.so ]]; then
rm -f "$NSS_WRAPPER_PASSWD" "$NSS_WRAPPER_GROUP"
unset LD_PRELOAD NSS_WRAPPER_PASSWD NSS_WRAPPER_GROUP
fi