gitweb: Don't enable app when setup is rerun

Tests:

- Rerun setup after disabling the app. App is not enabled.

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 2023-07-31 19:46:22 -04:00
1 parent 69c4aca429
commit b90ddd514d
1 file changed
+2 -1
+2 -1
View File
@@ -131,7 +131,8 @@ class GitwebApp(app_module.App):
"""Install and configure the app."""
super().setup(old_version)
privileged.setup()
self.enable()
if not old_version:
self.enable()
def uninstall(self):
"""De-configure and uninstall the app."""