From 08821787bf8da16d4a7f0668fd66e702a4283416 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 6 Jul 2022 17:18:44 -0700 Subject: [PATCH] cockpit: Depend on apache and setup after it Closes: #2089. Tests: - Regular startup works without errors. Cockpit is ordered after Apache. - After creating a fresh container, Cockpit works as expected. Cockpit setup runs after Apache setup. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/cockpit/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plinth/modules/cockpit/__init__.py b/plinth/modules/cockpit/__init__.py index 0a5bc3a4b..5e7abb6b8 100644 --- a/plinth/modules/cockpit/__init__.py +++ b/plinth/modules/cockpit/__init__.py @@ -59,8 +59,9 @@ class CockpitApp(app_module.App): super().__init__() info = app_module.Info(app_id=self.app_id, version=self._version, - is_essential=True, name=_('Cockpit'), - icon='fa-wrench', icon_filename='cockpit', + depends=['apache'], is_essential=True, + name=_('Cockpit'), icon='fa-wrench', + icon_filename='cockpit', short_description=_('Server Administration'), description=_description, manual_page='Cockpit', clients=manifest.clients)