Merge pull request #42287 from ryantm/mattermost-joinsnamespaceof
nixos/mattermost: fix JoinsNamespaceOf config location
This commit is contained in:
commit
36600b2a50
@ -203,11 +203,11 @@ in
|
|||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
ExecStart = "${pkgs.mattermost}/bin/mattermost-platform";
|
ExecStart = "${pkgs.mattermost}/bin/mattermost-platform";
|
||||||
WorkingDirectory = "${cfg.statePath}";
|
WorkingDirectory = "${cfg.statePath}";
|
||||||
JoinsNamespaceOf = mkIf cfg.localDatabaseCreate "postgresql.service";
|
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = "10";
|
RestartSec = "10";
|
||||||
LimitNOFILE = "49152";
|
LimitNOFILE = "49152";
|
||||||
};
|
};
|
||||||
|
unitConfig.JoinsNamespaceOf = mkIf cfg.localDatabaseCreate "postgresql.service";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
(mkIf cfg.matterircd.enable {
|
(mkIf cfg.matterircd.enable {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user