try fix script
This commit is contained in:
3
lib.nix
3
lib.nix
@@ -142,11 +142,12 @@ in
|
|||||||
name = "run-postgres";
|
name = "run-postgres";
|
||||||
text = ''
|
text = ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
mkdir -p ${lib.escapeShellArg runtimeDir}
|
||||||
|
|
||||||
PGDATA=$(realpath ${data_dir})
|
PGDATA=$(realpath ${data_dir})
|
||||||
PGHOST=$(realpath ${runtimeDir})
|
PGHOST=$(realpath ${runtimeDir})
|
||||||
PGPORT=${builtins.toString port}
|
PGPORT=${builtins.toString port}
|
||||||
export PGDATA PGHOST PGPORT
|
export PGDATA PGHOST PGPORT
|
||||||
mkdir -p ${lib.escapeShellArg runtimeDir}
|
|
||||||
${setupScript}/bin/setup-postgres
|
${setupScript}/bin/setup-postgres
|
||||||
${package}/bin/postgres
|
${package}/bin/postgres
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user