Merge pull request #42287 from ryantm/mattermost-joinsnamespaceof

nixos/mattermost: fix JoinsNamespaceOf config location
This commit is contained in:
Jörg Thalheim
2018-06-20 09:57:16 +01:00
committed by GitHub

View File

@@ -203,11 +203,11 @@ in
Group = cfg.group;
ExecStart = "${pkgs.mattermost}/bin/mattermost-platform";
WorkingDirectory = "${cfg.statePath}";
JoinsNamespaceOf = mkIf cfg.localDatabaseCreate "postgresql.service";
Restart = "always";
RestartSec = "10";
LimitNOFILE = "49152";
};
unitConfig.JoinsNamespaceOf = mkIf cfg.localDatabaseCreate "postgresql.service";
};
})
(mkIf cfg.matterircd.enable {