1
0
Fork 0
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:
Michael Hoang 2024-10-13 08:39:35 +11:00 committed by GitHub
commit fd0e3ed30b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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