From c115e4d75138868132b91c9a318c4afa168d1663 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 16 Jan 2022 15:29:27 +0100 Subject: [PATCH] Update cronupdate --- fireflyiii/rootfs/templates/cronupdate | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fireflyiii/rootfs/templates/cronupdate b/fireflyiii/rootfs/templates/cronupdate index f5400321c..41eba4659 100644 --- a/fireflyiii/rootfs/templates/cronupdate +++ b/fireflyiii/rootfs/templates/cronupdate @@ -1,3 +1,9 @@ -#!/bin/bash -echo "Running update according to defined schedule" +/usr/bin/env bashio + +bashio::info "Running update according to defined schedule" +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/php /var/www/html/artisan firefly:cron >/dev/null +else /usr/local/bin/php /var/www/html/artisan firefly:cron +fi