try fix script

This commit is contained in:
2025-03-17 12:55:23 +04:00
parent bc8e522b6f
commit 19b02ca7c1

View File

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