We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f879502 commit ca79f4dCopy full SHA for ca79f4d
src/root/usr/share/container-scripts/postgresql/common.sh
@@ -178,7 +178,7 @@ function generate_postgresql_recovery_config() {
178
function generate_passwd_file() {
179
export USER_ID=$(id -u)
180
export GROUP_ID=$(id -g)
181
- grep -v -e ^postgres -e ^$USER_ID /etc/passwd > "$HOME/passwd"
+ grep -v -e ^postgres -e ^$USER_ID -e ^$(id -un) /etc/passwd > "$HOME/passwd"
182
echo "postgres:x:${USER_ID}:${GROUP_ID}:PostgreSQL Server:${HOME}:/bin/bash" >> "$HOME/passwd"
183
export LD_PRELOAD=libnss_wrapper.so
184
export NSS_WRAPPER_PASSWD=${HOME}/passwd
0 commit comments