From e525d0ff7254b7cbc83150c30d06300f5625d266 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 27 Apr 2023 07:06:01 -0700 Subject: [PATCH] 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 Reviewed-by: James Valleroy --- plinth/modules/ttrss/__init__.py | 3 ++- plinth/modules/ttrss/privileged.py | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/plinth/modules/ttrss/__init__.py b/plinth/modules/ttrss/__init__.py index 461e07471..04f9bdb31 100644 --- a/plinth/modules/ttrss/__init__.py +++ b/plinth/modules/ttrss/__init__.py @@ -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') diff --git a/plinth/modules/ttrss/privileged.py b/plinth/modules/ttrss/privileged.py index abc2d7344..34778b596 100644 --- a/plinth/modules/ttrss/privileged.py +++ b/plinth/modules/ttrss/privileged.py @@ -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