From 42442ee5b42ccb3bff447a7ddf397561afc29d6f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Feb 2022 11:21:15 +0100 Subject: [PATCH] Update 99-run.sh --- fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh index 3fb7a2a3c..cbb0e0ba4 100644 --- a/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh +++ b/fireflyiii_data_importer/rootfs/etc/cont-init.d/99-run.sh @@ -29,7 +29,6 @@ if bashio::config.has_value 'Updates'; then # Sets cron // do not delete this message cp /templates/cronupdate /etc/cron."${FREQUENCY}"/ chmod 777 /etc/cron."${FREQUENCY}"/cronupdate - chown www-data:www-data /etc/cron."${FREQUENCY}"/cronupdate # Sets cron to run with www-data user sed -i 's|root|www-data|g' /etc/crontab @@ -59,4 +58,9 @@ fi bashio::log.info "Please wait while the app is loading !" -/./usr/local/bin/entrypoint.sh +if bashio::config.true 'silent'; then + bashio::log.warning "Silent mode activated. Only errors will be shown. Please disable in addon options if you need to debug" + /./usr/local/bin/entrypoint.sh >/dev/null +else + /./usr/local/bin/entrypoint.sh +fi