summaryrefslogtreecommitdiff
path: root/modules/services/postgresql/default.nix
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-03-29 07:22:01 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-03-29 07:22:01 -0500
commit6a6d512d405203d9d564684c6462390a297d90f6 (patch)
tree6c0f6ce5fc235fa3ed16da1d8b5a9765003a78fc /modules/services/postgresql/default.nix
parent2430e7210042ca8ba175c52ed3de871a008f4ffc (diff)
postgresql: Use core `ln` from coreutils
Otherwise it fallbacks to /bin/ln which is outdated and might not work.
Diffstat (limited to 'modules/services/postgresql/default.nix')
-rw-r--r--modules/services/postgresql/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/services/postgresql/default.nix b/modules/services/postgresql/default.nix
index 1098b4e..0fa04e6 100644
--- a/modules/services/postgresql/default.nix
+++ b/modules/services/postgresql/default.nix
@@ -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"}
'';