try fix script
This commit is contained in:
3
lib.nix
3
lib.nix
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user