fix script

This commit is contained in:
2025-03-17 13:18:45 +04:00
parent 3b67a7ab1c
commit 24fc414926

View File

@@ -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