mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
gitweb: Fix issue with service startup when gitweb is not enabled
When gitweb is installed and not enabled without any public repos, the post_inst() method tries to enable gitweb-freedombox-auth.conf apache2 configuration. Due to new approach of symlinking configuration files only when needed, the file is not found and startup of freedombox service fails. Fix it by making sure that gitweb auth configuration is only enabled when app itself is enabled. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
2b355e2ddd
commit
478ec3b1d3
@ -98,7 +98,7 @@ class GitwebApp(app_module.App):
|
||||
|
||||
def post_init(self):
|
||||
"""Perform post initialization operations."""
|
||||
if not self.needs_setup():
|
||||
if not self.needs_setup() and self.is_enabled():
|
||||
self.update_service_access()
|
||||
|
||||
def set_shortcut_login_required(self, login_required):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user