fix script
This commit is contained in:
3
lib.nix
3
lib.nix
@@ -55,6 +55,7 @@ in
|
|||||||
pkgs.writeShellApplication {
|
pkgs.writeShellApplication {
|
||||||
inherit name;
|
inherit name;
|
||||||
text = ''
|
text = ''
|
||||||
|
|
||||||
PC_CONFIG_FILES=${configFile} RUNTIME_PATH=$(pwd)/${runtime} ${pkgs.process-compose}/bin/process-compose "$@"
|
PC_CONFIG_FILES=${configFile} RUNTIME_PATH=$(pwd)/${runtime} ${pkgs.process-compose}/bin/process-compose "$@"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@@ -142,7 +143,7 @@ in
|
|||||||
PGDATA=$RUNTIME_PATH/${name}/data
|
PGDATA=$RUNTIME_PATH/${name}/data
|
||||||
PGHOST=$RUNTIME_PATH/${name}/socket
|
PGHOST=$RUNTIME_PATH/${name}/socket
|
||||||
PGPORT=${builtins.toString port}
|
PGPORT=${builtins.toString port}
|
||||||
mkdir -p $PGHOST
|
mkdir -p "$PGHOST"
|
||||||
echo "Starting postgres with PGDATA=''${PGDATA} PGHOST=''${PGHOST} PGPORT=''${PGPORT}"
|
echo "Starting postgres with PGDATA=''${PGDATA} PGHOST=''${PGHOST} PGPORT=''${PGPORT}"
|
||||||
export PGDATA PGHOST PGPORT
|
export PGDATA PGHOST PGPORT
|
||||||
${setupScript}/bin/setup-postgres
|
${setupScript}/bin/setup-postgres
|
||||||
|
|||||||
Reference in New Issue
Block a user