diff --git a/plinth/modules/gitweb/__init__.py b/plinth/modules/gitweb/__init__.py index 95f826bed..26c9c968b 100644 --- a/plinth/modules/gitweb/__init__.py +++ b/plinth/modules/gitweb/__init__.py @@ -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."""