From b0f6a95e559482849a3b568652ecc64e814b2bfd Mon Sep 17 00:00:00 2001 From: Nikkuss Date: Mon, 17 Mar 2025 12:38:28 +0400 Subject: [PATCH] try fix script --- lib.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib.nix b/lib.nix index 1c7a2af..e6836b6 100644 --- a/lib.nix +++ b/lib.nix @@ -141,12 +141,11 @@ in script = pkgs.writeShellApplication { name = "run-postgres"; text = '' - set -euo pipefail - export PGDATA=$(pwd)/${data_dir} PGHOST=$(pwd)/${runtimeDir} PGPORT=${builtins.toString port} - pwd - mkdir -p ${lib.escapeShellArg runtimeDir} - ${setupScript}/bin/setup-postgres - exec ${package}/bin/postgres + set -euo pipefail + export PGDATA=${data_dir} PGHOST=${runtimeDir} PGPORT=${builtins.toString port} + mkdir -p ${lib.escapeShellArg runtimeDir} + ${setupScript}/bin/setup-postgres + ${package}/bin/postgres ''; }; in