syncthing: Fix showing running status in configuration page

This commit is contained in:
Joseph Nuthalpati authored and Sunil Mohan Adapa committed 2017-03-23 15:07:38 +05:30
1 parent a5147cfe16
commit 551bd7b92c
2 files changed
+2 -5

No files matched your search

@@ -11,4 +11,3 @@ ProxyPass /syncthing/ http://localhost:8384/
Require valid-user
</Location>
+2 -4
View File
@@ -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'))