remove unix socket from pg
This commit is contained in:
3
lib.nix
3
lib.nix
@@ -124,12 +124,13 @@ in
|
||||
echo "PostgreSQL initdb process completed"
|
||||
echo
|
||||
fi
|
||||
cp {configFile} "$PGDATA"/postgresql.conf
|
||||
# sed "s|@PGHOST@|''${PGHOST}|g" ${configFile} > "$PGDATA"/postgresql.conf
|
||||
if [[ "$POSTGRES_RUN_INITIAL_SCRIPT" == "true" ]]; then
|
||||
echo
|
||||
echo "PostgreSQL is setting up the initial database"
|
||||
echo
|
||||
pg_ctl -w start -o "-c unix_socket_directories='''' -c listen_addresses= -p ${builtins.toString port}"
|
||||
pg_ctl -w start -o "-c listen_addresses= -p ${builtins.toString port}"
|
||||
pg_ctl -m fast -w stop
|
||||
else
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user