ttrss: Make setup process reusable

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2019-03-01 23:50:42 -05:00
1 parent 2f0bc29239
commit 0dea9e80f3
2 files changed
+3 -3

No files matched your search

+2 -3
View File
@@ -81,9 +81,7 @@ def subcommand_setup(_):
aug.save()
action_utils.service_restart('tt-rss')
action_utils.webserver_enable('tt-rss-plinth')
enable_api_access()
action_utils.service_try_restart('tt-rss')
def enable_api_access():
@@ -117,6 +115,7 @@ def subcommand_enable(_):
"""Enable web configuration and reload."""
action_utils.service_enable('tt-rss')
action_utils.webserver_enable('tt-rss-plinth')
enable_api_access()
def subcommand_disable(_):