mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
2f0bc29239
commit
0dea9e80f3
2 files changed
+3
-3
No files matched your search
+2
-3
@@ -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(_):
|
||||
|
||||
Reference in new issue
Block a user