mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +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
|
Require valid-user
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ version = 1
|
|||||||
|
|
||||||
depends = ['apps']
|
depends = ['apps']
|
||||||
|
|
||||||
managed_services = ['syncthing']
|
managed_services = ['syncthing@syncthing.service']
|
||||||
|
|
||||||
managed_packages = ['syncthing']
|
managed_packages = ['syncthing']
|
||||||
|
|
||||||
@ -46,8 +46,6 @@ description = [
|
|||||||
'/syncthing</a> path on the web server.'),
|
'/syncthing</a> path on the web server.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
service = None
|
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Intialize the module."""
|
||||||
@ -96,7 +94,7 @@ def add_shortcut():
|
|||||||
|
|
||||||
def is_enabled():
|
def is_enabled():
|
||||||
"""Return whether the module 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'))
|
action_utils.webserver_is_enabled('syncthing-plinth'))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user