mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ttrss: Use LDAP authentication
This commit is contained in:
1 parent
47a54fadd1
commit
368e64c5ca
3 files changed
+24
-6
No files matched your search
+5
-3
@@ -51,22 +51,24 @@ def subcommand_setup(_):
|
||||
for match in aug.match('/files' + CONFIG_FILE + '/define'):
|
||||
if aug.get(match) == 'SELF_URL_PATH':
|
||||
aug.set(match + '/value', "'http://localhost/tt-rss/'")
|
||||
elif aug.get(match) == 'PLUGINS':
|
||||
aug.set(match + '/value', "'auth_remote, note'")
|
||||
|
||||
aug.save()
|
||||
|
||||
action_utils.service_restart('tt-rss')
|
||||
action_utils.webserver_enable('50-tt-rss')
|
||||
action_utils.webserver_enable('tt-rss-plinth')
|
||||
|
||||
|
||||
def subcommand_enable(_):
|
||||
"""Enable web configuration and reload."""
|
||||
action_utils.service_enable('tt-rss')
|
||||
action_utils.webserver_enable('50-tt-rss')
|
||||
action_utils.webserver_enable('tt-rss-plinth')
|
||||
|
||||
|
||||
def subcommand_disable(_):
|
||||
"""Disable web configuration and reload."""
|
||||
action_utils.webserver_disable('50-tt-rss')
|
||||
action_utils.webserver_disable('tt-rss-plinth')
|
||||
action_utils.service_disable('tt-rss')
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user