From e2e24b069478503f718aec95782e8cf5254f1994 Mon Sep 17 00:00:00 2001 From: Nikkuss Date: Mon, 17 Mar 2025 13:48:51 +0400 Subject: [PATCH] remove unix socket from pg --- lib.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib.nix b/lib.nix index c02a648..e1b3c1f 100644 --- a/lib.nix +++ b/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