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