mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
app: Set app as enabled only when the daemon is enabled
- For avahi, datetime and SSH. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
20aa2abe3b
commit
23f37a3a3d
@ -82,6 +82,7 @@ def init():
|
||||
"""Intialize the service discovery module."""
|
||||
global app
|
||||
app = AvahiApp()
|
||||
if app.is_enabled():
|
||||
app.set_enabled(True)
|
||||
|
||||
|
||||
|
||||
@ -68,6 +68,7 @@ def init():
|
||||
"""Intialize the date/time module."""
|
||||
global app
|
||||
app = DateTimeApp()
|
||||
if app.is_enabled():
|
||||
app.set_enabled(True)
|
||||
|
||||
|
||||
|
||||
@ -75,6 +75,7 @@ def init():
|
||||
"""Intialize the ssh module."""
|
||||
global app
|
||||
app = SSHApp()
|
||||
if app.is_enabled():
|
||||
app.set_enabled(True)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user