pagekite: On enable/disable, add/remove domain from names module

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2020-03-15 09:28:24 +02:00
1 parent 312ad2800d
commit c9c4823ec3
1 file changed
+10
+10
View File
@@ -79,6 +79,16 @@ class PagekiteApp(app_module.App):
daemon = Daemon('daemon-pagekite', managed_services[0])
self.add(daemon)
def enable(self):
"""Send domain signals after enabling the app."""
super().enable()
utils.update_names_module(is_enabled=True)
def disable(self):
"""Send domain signals before disabling the app."""
utils.update_names_module(is_enabled=False)
super().disable()
def init():
"""Initialize the PageKite module"""