From c27000c6d6f8d258b99960d42c1d62ccbf4b79b6 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 14 Nov 2021 11:59:30 -0800 Subject: [PATCH] config: Split app configuration Tests: - After startup, the configured domain name shows up in names module. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/config/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plinth/modules/config/__init__.py b/plinth/modules/config/__init__.py index a2b0327bb..45060726c 100644 --- a/plinth/modules/config/__init__.py +++ b/plinth/modules/config/__init__.py @@ -68,6 +68,9 @@ class ConfigApp(app_module.App): 'config:index', can_have_certificate=True) self.add(domain_type) + @staticmethod + def post_init(): + """Perform post initialization operations.""" # Register domain with Name Services module. domainname = get_domainname() if domainname: