mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
dynamicdns: Split app initialization
Tests: - When configured, after startup, Dynamic DNS domain shows up in names module. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
249c713bb5
commit
b163423a26
@ -80,6 +80,9 @@ class DynamicDNSApp(app_module.App):
|
|||||||
**manifest.backup)
|
**manifest.backup)
|
||||||
self.add(backup_restore)
|
self.add(backup_restore)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def post_init():
|
||||||
|
"""Perform post initialization operations."""
|
||||||
current_status = get_status()
|
current_status = get_status()
|
||||||
if current_status['enabled']:
|
if current_status['enabled']:
|
||||||
domain_added.send_robust(sender='dynamicdns',
|
domain_added.send_robust(sender='dynamicdns',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user