ttrss: Use LDAP authentication

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2016-03-12 11:38:28 +05:30
1 parent 47a54fadd1
commit 368e64c5ca
3 files changed
+24 -6

No files matched your search

+4 -3
View File
@@ -58,7 +58,7 @@ def init():
def setup(helper, old_version=None):
"""Install and configure the module."""
helper.install(['tt-rss', 'postgresql', 'dbconfig-pgsql', 'php5-pgsql'])
helper.install(['tt-rss', 'postgresql', 'dbconfig-pgsql', 'php-pgsql'])
helper.call('post', actions.superuser_run, 'ttrss', ['setup'])
helper.call('post', service.notify_enabled, None, True)
@@ -71,7 +71,8 @@ def get_status():
def is_enabled():
"""Return whether the module is enabled."""
return action_utils.webserver_is_enabled('50-tt-rss')
return (action_utils.service_is_enabled('tt-rss') and
action_utils.webserver_is_enabled('tt-rss-plinth'))
def is_running():
@@ -91,6 +92,6 @@ def diagnose():
results = []
results.extend(action_utils.diagnose_url_on_all(
'https://{host}/ttrss', extra_options=['--no-check-certificate']))
'https://{host}/tt-rss', extra_options=['--no-check-certificate']))
return results