try fix script

This commit is contained in:
2025-03-17 12:38:28 +04:00
parent c84a3bf6fc
commit b0f6a95e55

View File

@@ -142,11 +142,10 @@ in
name = "run-postgres";
text = ''
set -euo pipefail
export PGDATA=$(pwd)/${data_dir} PGHOST=$(pwd)/${runtimeDir} PGPORT=${builtins.toString port}
pwd
export PGDATA=${data_dir} PGHOST=${runtimeDir} PGPORT=${builtins.toString port}
mkdir -p ${lib.escapeShellArg runtimeDir}
${setupScript}/bin/setup-postgres
exec ${package}/bin/postgres
${package}/bin/postgres
'';
};
in