try fix script
This commit is contained in:
11
lib.nix
11
lib.nix
@@ -141,12 +141,11 @@ in
|
|||||||
script = pkgs.writeShellApplication {
|
script = pkgs.writeShellApplication {
|
||||||
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
|
${package}/bin/postgres
|
||||||
exec ${package}/bin/postgres
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|||||||
Reference in New Issue
Block a user