syncthing: Fix showing running status in configuration page

This commit is contained in:
Joseph Nuthalpati 2017-03-22 19:53:20 +05:30 committed by Sunil Mohan Adapa
parent a5147cfe16
commit 551bd7b92c
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 2 additions and 5 deletions

View File

@ -11,4 +11,3 @@ ProxyPass /syncthing/ http://localhost:8384/
Require valid-user
</Location>

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'))