From fe482256f63c4894695ac98481f523de918595ac Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 14 Nov 2021 12:06:59 -0800 Subject: [PATCH] tor: Split app initialziation Tests: - When onion services are enabled, upon startup, names module shows the onion domain. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/tor/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plinth/modules/tor/__init__.py b/plinth/modules/tor/__init__.py index 22d5d4e23..42c91d12a 100644 --- a/plinth/modules/tor/__init__.py +++ b/plinth/modules/tor/__init__.py @@ -95,6 +95,8 @@ class TorApp(app_module.App): backup_restore = BackupRestore('backup-restore-tor', **manifest.backup) self.add(backup_restore) + def post_init(self): + """Perform post initialization operations.""" # Register hidden service name with Name Services module. setup_helper = globals()['setup_helper'] if setup_helper.get_state() != 'needs-setup' and \