From 6a6d512d405203d9d564684c6462390a297d90f6 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 29 Mar 2019 07:22:01 -0500 Subject: [PATCH] postgresql: Use core `ln` from coreutils Otherwise it fallbacks to /bin/ln which is outdated and might not work. --- modules/services/postgresql/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/postgresql/default.nix b/modules/services/postgresql/default.nix index 1098b4e4..0fa04e63 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"} '';