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