mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-29 12:09:37 +00:00
pagekite: Split app initialization
Tests: - When configured, upon startup, pagekite domains shows up in the names module. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
1d17ba2134
commit
e5b56e44f1
@ -89,6 +89,8 @@ class PagekiteApp(app_module.App):
|
||||
**manifest.backup)
|
||||
self.add(backup_restore)
|
||||
|
||||
def post_init(self):
|
||||
"""Perform post initialization operations."""
|
||||
# Register kite name with Name Services module.
|
||||
setup_helper = globals()['setup_helper']
|
||||
if setup_helper.get_state() != 'needs-setup' and self.is_enabled():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user