From 0f148b3fef5120927a5a7830a0e8090a92fb02dd Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Tue, 18 Jun 2024 12:05:29 +0200 Subject: [PATCH] CI not happy, yet ...and better not show the output from urlwatch, because it could contain passwords. --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 9354d63..0ef0c1e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -772,10 +772,10 @@ flohmarkt_ynh_urlwatch_cron() { chown root:root "/etc/cron.hourly/${flohmarkt_filename}" chmod 755 "/etc/cron.hourly/${flohmarkt_filename}" # run urlwatch once to initialize if cache file does not exist, - # but if sending email fails (like on CI) just warn - local urlwatch_error + # but if sending email fails (like on CI) just warn. We do not want + # to show the output that might contain passwords if ! [[ -s /var/www/${app}/urlwatch/cache.file ]] && - ! ynh_exec_warn sudo -u ${app} urlwatch \ + ! ynh_exec_fully_quiet sudo -u ${app} urlwatch \ --config=/var/www/${app}/urlwatch/config.yaml \ --urls=/var/www/${app}/urlwatch/urls.yaml \ --cache=/var/www/${app}/urlwatch/cache.file