mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-15 09:51:21 +00:00
syncthing: Fix showing running status in configuration page
This commit is contained in:
parent
a5147cfe16
commit
551bd7b92c
@ -11,4 +11,3 @@ ProxyPass /syncthing/ http://localhost:8384/
|
||||
Require valid-user
|
||||
</Location>
|
||||
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ version = 1
|
||||
|
||||
depends = ['apps']
|
||||
|
||||
managed_services = ['syncthing']
|
||||
managed_services = ['syncthing@syncthing.service']
|
||||
|
||||
managed_packages = ['syncthing']
|
||||
|
||||
@ -46,8 +46,6 @@ description = [
|
||||
'/syncthing</a> path on the web server.'),
|
||||
]
|
||||
|
||||
service = None
|
||||
|
||||
|
||||
def init():
|
||||
"""Intialize the module."""
|
||||
@ -96,7 +94,7 @@ def add_shortcut():
|
||||
|
||||
def is_enabled():
|
||||
"""Return whether the module is enabled."""
|
||||
return (action_utils.service_is_enabled('syncthing@plinth.service') and
|
||||
return (action_utils.service_is_running('syncthing@syncthing.service') and
|
||||
action_utils.webserver_is_enabled('syncthing-plinth'))
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user