From 97a2d68ac6c7cfcc44b6c97adbe233fed27f6bea Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 8 Mar 2026 09:21:44 -0700 Subject: [PATCH] apache2: Disable pubtkt authentication module - Since FreedomBox does not depend on the package anymore, unattended-upgrades will remove the package. This causes Apache2 to fail to start. Disable the module from Apache2 configuration. Tests: - Remove the libapache2-mod-auth-pubtkt package. Re-run apache app setup by incrementing it version number. Apache will fail to start. Apply the patch and increment the version number. auth_pubtkt module will be disabled and Apache is automatically running again. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/apache/__init__.py | 2 +- plinth/modules/apache/privileged.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/apache/__init__.py b/plinth/modules/apache/__init__.py index c64793f21..62dd6cc3c 100644 --- a/plinth/modules/apache/__init__.py +++ b/plinth/modules/apache/__init__.py @@ -86,7 +86,7 @@ class ApacheApp(app_module.App): app_id = 'apache' - _version = 15 + _version = 16 def __init__(self) -> None: """Create components for the app.""" diff --git a/plinth/modules/apache/privileged.py b/plinth/modules/apache/privileged.py index 880757d89..de46375f4 100644 --- a/plinth/modules/apache/privileged.py +++ b/plinth/modules/apache/privileged.py @@ -128,7 +128,7 @@ def setup(old_version: int): # Various modules for authentication/authorization webserver.enable('auth_openidc', kind='module') webserver.enable('authnz_ldap', kind='module') - webserver.enable('auth_pubtkt', kind='module') + webserver.disable('auth_pubtkt', kind='module') # enable some critical modules to avoid restart while installing # FreedomBox applications.