mirror of
https://github.com/YunoHost-Apps/flohmarkt_ynh.git
synced 2024-09-03 18:36:30 +02:00
CI not happy, yet
...and better not show the output from urlwatch, because it could contain passwords.
This commit is contained in:
parent
83d943a64a
commit
0f148b3fef
1 changed files with 3 additions and 3 deletions
|
@ -772,10 +772,10 @@ flohmarkt_ynh_urlwatch_cron() {
|
||||||
chown root:root "/etc/cron.hourly/${flohmarkt_filename}"
|
chown root:root "/etc/cron.hourly/${flohmarkt_filename}"
|
||||||
chmod 755 "/etc/cron.hourly/${flohmarkt_filename}"
|
chmod 755 "/etc/cron.hourly/${flohmarkt_filename}"
|
||||||
# run urlwatch once to initialize if cache file does not exist,
|
# run urlwatch once to initialize if cache file does not exist,
|
||||||
# but if sending email fails (like on CI) just warn
|
# but if sending email fails (like on CI) just warn. We do not want
|
||||||
local urlwatch_error
|
# to show the output that might contain passwords
|
||||||
if ! [[ -s /var/www/${app}/urlwatch/cache.file ]] &&
|
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 \
|
--config=/var/www/${app}/urlwatch/config.yaml \
|
||||||
--urls=/var/www/${app}/urlwatch/urls.yaml \
|
--urls=/var/www/${app}/urlwatch/urls.yaml \
|
||||||
--cache=/var/www/${app}/urlwatch/cache.file
|
--cache=/var/www/${app}/urlwatch/cache.file
|
||||||
|
|
Loading…
Reference in a new issue