mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-16 13:28:16 +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"
|
"${cfg.dataDir}/recovery.conf"
|
||||||
''}
|
''}
|
||||||
|
|
||||||
exec ${postgresql}/bin/postgres -D ${cfg.dataDir}
|
exec ${postgresql}/bin/postgres
|
||||||
'';
|
'';
|
||||||
|
|
||||||
serviceConfig.KeepAlive = true;
|
serviceConfig.KeepAlive = true;
|
||||||
serviceConfig.RunAtLoad = true;
|
serviceConfig.RunAtLoad = true;
|
||||||
|
serviceConfig.EnvironmentVariables = {
|
||||||
|
PGDATA = cfg.dataDir;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue