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"; name = "run-postgres";
text = '' text = ''
set -euo pipefail set -euo pipefail
export PGDATA=$(pwd)/${data_dir} PGHOST=$(pwd)/${runtimeDir} PGPORT=${builtins.toString port} export PGDATA=${data_dir} PGHOST=${runtimeDir} PGPORT=${builtins.toString port}
pwd
mkdir -p ${lib.escapeShellArg runtimeDir} mkdir -p ${lib.escapeShellArg runtimeDir}
${setupScript}/bin/setup-postgres ${setupScript}/bin/setup-postgres
exec ${package}/bin/postgres ${package}/bin/postgres
''; '';
}; };
in in