1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

Merge pull request #136 from marsam/postgres-coreutils-ln

postgresql: Use core `ln` from coreutils
This commit is contained in:
Daiderd Jordan 2019-03-30 10:30:08 +01:00 committed by GitHub
commit 66d64a91e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ in
if ! test -e ${cfg.dataDir}/PG_VERSION; then
initdb -U postgres -D ${cfg.dataDir}
fi
ln -sfn ${configFile} ${cfg.dataDir}/postgresql.conf
${pkgs.coreutils}/bin/ln -sfn ${configFile} ${cfg.dataDir}/postgresql.conf
exec ${cfg.package}/bin/postgres -D ${cfg.dataDir} ${optionalString cfg.enableTCPIP "-i"}
'';