fix issue in pgdata setup
This commit is contained in:
parent
fcc32dbea2
commit
e1025a2d39
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ with lib;
|
||||||
export PGHOST="$PGDATA"
|
export PGHOST="$PGDATA"
|
||||||
if [[ ! -d "$PGDATA" ]]; then
|
if [[ ! -d "$PGDATA" ]]; then
|
||||||
initdb --locale=$LANG
|
initdb --locale=$LANG
|
||||||
cat <<'EOF' >>"$PGDATA/postgresql.conf"
|
cat <<EOF >>"$PGDATA/postgresql.conf"
|
||||||
listen_addresses = 'localhost'
|
listen_addresses = 'localhost'
|
||||||
unix_socket_directories = '$PGHOST'
|
unix_socket_directories = '$PGHOST'
|
||||||
EOF
|
EOF
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue