remove unix socket from pg

This commit is contained in:
2025-03-17 13:48:51 +04:00
parent 3c6a6fc0b5
commit e2e24b0694

View File

@@ -124,12 +124,13 @@ in
echo "PostgreSQL initdb process completed" echo "PostgreSQL initdb process completed"
echo echo
fi fi
cp {configFile} "$PGDATA"/postgresql.conf
# sed "s|@PGHOST@|''${PGHOST}|g" ${configFile} > "$PGDATA"/postgresql.conf # sed "s|@PGHOST@|''${PGHOST}|g" ${configFile} > "$PGDATA"/postgresql.conf
if [[ "$POSTGRES_RUN_INITIAL_SCRIPT" == "true" ]]; then if [[ "$POSTGRES_RUN_INITIAL_SCRIPT" == "true" ]]; then
echo echo
echo "PostgreSQL is setting up the initial database" echo "PostgreSQL is setting up the initial database"
echo 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 pg_ctl -m fast -w stop
else else
echo echo