roundcube: specify systemd dependencies with dovecot

This commit is contained in:
Alexander Tomokhov
2025-04-22 02:07:27 +04:00
parent 849b695aa4
commit 9f5ace5258

View File

@@ -91,7 +91,7 @@ in
systemd.slices.roundcube.description = "Roundcube service slice"; systemd.slices.roundcube.description = "Roundcube service slice";
# Roundcube depends on Dovecot and its OAuth2 client secret. # 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 # the following part is active only when "auth" module is enabled
(lib.mkIf is-auth-enabled { (lib.mkIf is-auth-enabled {
@@ -127,7 +127,7 @@ in
originUrl = "https://${cfg.subdomain}.${domain}/index.php/login/oauth"; originUrl = "https://${cfg.subdomain}.${domain}/index.php/login/oauth";
originLanding = "https://${cfg.subdomain}.${domain}/"; originLanding = "https://${cfg.subdomain}.${domain}/";
useShortPreferredUsername = false; useShortPreferredUsername = false;
clientSystemdUnits = [ "phpfpm-roundcube.service" ]; clientSystemdUnits = [ "dovecot2.service" "phpfpm-roundcube.service" ];
enablePkce = false; enablePkce = false;
linuxUserOfClient = linuxUserOfService; linuxUserOfClient = linuxUserOfService;
linuxGroupOfClient = linuxGroupOfService; linuxGroupOfClient = linuxGroupOfService;