mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
312ad2800d
commit
c9c4823ec3
@ -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"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user