mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Merge pull request #794 from fesplugas/patch-1
fix: postgresql service initdb
This commit is contained in:
commit
fd0e3ed30b
1 changed files with 6 additions and 3 deletions
|
@ -237,10 +237,10 @@ in
|
|||
for an overview of `postgresql.conf`.
|
||||
|
||||
::: {.note}
|
||||
|
||||
|
||||
String values will automatically be enclosed in single quotes. Single quotes will be
|
||||
escaped with two single quotes as described by the upstream documentation linked above.
|
||||
|
||||
|
||||
:::
|
||||
'';
|
||||
example = literalExpression ''
|
||||
|
@ -355,11 +355,14 @@ in
|
|||
"${cfg.dataDir}/recovery.conf"
|
||||
''}
|
||||
|
||||
exec ${postgresql}/bin/postgres -D ${cfg.dataDir}
|
||||
exec ${postgresql}/bin/postgres
|
||||
'';
|
||||
|
||||
serviceConfig.KeepAlive = true;
|
||||
serviceConfig.RunAtLoad = true;
|
||||
serviceConfig.EnvironmentVariables = {
|
||||
PGDATA = cfg.dataDir;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue