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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2026-03-08 14:41:14 -04:00
1 parent 6128d3be16
commit 97a2d68ac6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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."""
+1 -1
View File
@@ -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.