nextcloud: only setup php-fpm exporter if nextcloud is enabled
This commit is contained in:
parent
6f92c457a2
commit
34e54408f0
1 changed files with 1 additions and 1 deletions
|
|
@ -852,7 +852,7 @@ in
|
|||
systemd.services.nextcloud-setup.after = cfg.mountPointServices;
|
||||
})
|
||||
|
||||
(lib.mkIf cfg.phpFpmPrometheusExporter.enable {
|
||||
(lib.mkIf (cfg.enable && cfg.phpFpmPrometheusExporter.enable) {
|
||||
services.prometheus.exporters.php-fpm = {
|
||||
enable = true;
|
||||
user = "nginx";
|
||||
|
|
|
|||
Loading…
Reference in a new issue