From 9f5ace525856973e4093d7065666203c7b9cc192 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Tue, 22 Apr 2025 02:07:27 +0400 Subject: [PATCH] roundcube: specify systemd dependencies with dovecot --- sp-modules/roundcube/module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sp-modules/roundcube/module.nix b/sp-modules/roundcube/module.nix index 19ba2be..3e9babc 100644 --- a/sp-modules/roundcube/module.nix +++ b/sp-modules/roundcube/module.nix @@ -91,7 +91,7 @@ in systemd.slices.roundcube.description = "Roundcube service slice"; # Roundcube depends on Dovecot and its OAuth2 client secret. - systemd.services.roundcube.after = [ "dovecot2.service" ]; + systemd.services.phpfpm-roundcube.after = [ "dovecot2.service" ]; } # the following part is active only when "auth" module is enabled (lib.mkIf is-auth-enabled { @@ -127,7 +127,7 @@ in originUrl = "https://${cfg.subdomain}.${domain}/index.php/login/oauth"; originLanding = "https://${cfg.subdomain}.${domain}/"; useShortPreferredUsername = false; - clientSystemdUnits = [ "phpfpm-roundcube.service" ]; + clientSystemdUnits = [ "dovecot2.service" "phpfpm-roundcube.service" ]; enablePkce = false; linuxUserOfClient = linuxUserOfService; linuxGroupOfClient = linuxGroupOfService;