From 35bfb018480625b20034c6443e79c6a91cc58490 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Mon, 2 Sep 2024 07:06:35 +0200 Subject: [PATCH] fix nextcloud test when nextcloud is not enabled --- modules/services/nextcloud-server.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/nextcloud-server.nix b/modules/services/nextcloud-server.nix index 8999b6f..e573cc6 100644 --- a/modules/services/nextcloud-server.nix +++ b/modules/services/nextcloud-server.nix @@ -998,7 +998,7 @@ in } ]; }) - (lib.mkIf cfg.autoDisableMaintenanceModeOnStart { + (lib.mkIf (cfg.enable && cfg.autoDisableMaintenanceModeOnStart) { systemd.services.nextcloud-setup.preStart = lib.mkBefore '' if [[ -e /var/lib/nextcloud/config/config.php ]]; then