Skip to content

Commit baea0ee

Browse files
committed
generate sources
1 parent ca79f4d commit baea0ee

File tree

4 files changed

+4
-4
lines changed
  • 10/root/usr/share/container-scripts/postgresql
  • 12/root/usr/share/container-scripts/postgresql
  • 13/root/usr/share/container-scripts/postgresql
  • 15/root/usr/share/container-scripts/postgresql

4 files changed

+4
-4
lines changed

10/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function generate_postgresql_recovery_config() {
177177
function generate_passwd_file() {
178178
export USER_ID=$(id -u)
179179
export GROUP_ID=$(id -g)
180-
grep -v -e ^postgres -e ^$USER_ID /etc/passwd > "$HOME/passwd"
180+
grep -v -e ^postgres -e ^$USER_ID -e ^$(id -un) /etc/passwd > "$HOME/passwd"
181181
echo "postgres:x:${USER_ID}:${GROUP_ID}:PostgreSQL Server:${HOME}:/bin/bash" >> "$HOME/passwd"
182182
export LD_PRELOAD=libnss_wrapper.so
183183
export NSS_WRAPPER_PASSWD=${HOME}/passwd

12/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function generate_postgresql_recovery_config() {
177177
function generate_passwd_file() {
178178
export USER_ID=$(id -u)
179179
export GROUP_ID=$(id -g)
180-
grep -v -e ^postgres -e ^$USER_ID /etc/passwd > "$HOME/passwd"
180+
grep -v -e ^postgres -e ^$USER_ID -e ^$(id -un) /etc/passwd > "$HOME/passwd"
181181
echo "postgres:x:${USER_ID}:${GROUP_ID}:PostgreSQL Server:${HOME}:/bin/bash" >> "$HOME/passwd"
182182
export LD_PRELOAD=libnss_wrapper.so
183183
export NSS_WRAPPER_PASSWD=${HOME}/passwd

13/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function generate_postgresql_recovery_config() {
177177
function generate_passwd_file() {
178178
export USER_ID=$(id -u)
179179
export GROUP_ID=$(id -g)
180-
grep -v -e ^postgres -e ^$USER_ID /etc/passwd > "$HOME/passwd"
180+
grep -v -e ^postgres -e ^$USER_ID -e ^$(id -un) /etc/passwd > "$HOME/passwd"
181181
echo "postgres:x:${USER_ID}:${GROUP_ID}:PostgreSQL Server:${HOME}:/bin/bash" >> "$HOME/passwd"
182182
export LD_PRELOAD=libnss_wrapper.so
183183
export NSS_WRAPPER_PASSWD=${HOME}/passwd

15/root/usr/share/container-scripts/postgresql/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function generate_postgresql_recovery_config() {
177177
function generate_passwd_file() {
178178
export USER_ID=$(id -u)
179179
export GROUP_ID=$(id -g)
180-
grep -v -e ^postgres -e ^$USER_ID /etc/passwd > "$HOME/passwd"
180+
grep -v -e ^postgres -e ^$USER_ID -e ^$(id -un) /etc/passwd > "$HOME/passwd"
181181
echo "postgres:x:${USER_ID}:${GROUP_ID}:PostgreSQL Server:${HOME}:/bin/bash" >> "$HOME/passwd"
182182
export LD_PRELOAD=libnss_wrapper.so
183183
export NSS_WRAPPER_PASSWD=${HOME}/passwd

0 commit comments

Comments
 (0)