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