try fix script
This commit is contained in:
6
lib.nix
6
lib.nix
@@ -1,7 +1,7 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
let
|
let
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
runtime = ".compose";
|
runtime = "$(realpath .compose)";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
mkWrapper =
|
mkWrapper =
|
||||||
@@ -142,7 +142,9 @@ in
|
|||||||
name = "run-postgres";
|
name = "run-postgres";
|
||||||
text = ''
|
text = ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
export PGDATA=$(realpath ${data_dir}) PGHOST=$(realpath ${runtimeDir}) PGPORT=${builtins.toString port}
|
export PGDATA=${data_dir}
|
||||||
|
export PGHOST=${runtimeDir}
|
||||||
|
export PGPORT=${builtins.toString port}
|
||||||
mkdir -p ${lib.escapeShellArg runtimeDir}
|
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