try fix script

This commit is contained in:
2025-03-17 12:52:52 +04:00
parent 19e6ea2386
commit b1196d03c2

View File

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