ttrss: Use the apache component to restart apache on config change

Tests:

- Install version 5 of ttrss app. Update to version 6. Notice that apache is
reloaded.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2023-04-27 07:06:01 -07:00 committed by James Valleroy
parent 31e4616470
commit e525d0ff72
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,8 @@ class TTRSSApp(app_module.App):
self.add(firewall)
webserver = Webserver('webserver-ttrss', 'tt-rss-plinth',
urls=['https://{host}/tt-rss'])
urls=['https://{host}/tt-rss'],
last_updated_version=5)
self.add(webserver)
daemon = Daemon('daemon-ttrss', 'tt-rss')

View File

@ -81,8 +81,6 @@ def setup():
if action_utils.service_is_enabled('tt-rss'):
action_utils.service_restart('tt-rss')
# Accommodate changes in Apache configuration file.
action_utils.service_reload('apache2')
@privileged