From c10bdbf19076c0b2793c9548530ee1517fba23e0 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Feb 2022 17:42:55 +0100 Subject: [PATCH] Update cronupdate --- fireflyiii_data_importer/rootfs/templates/cronupdate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fireflyiii_data_importer/rootfs/templates/cronupdate b/fireflyiii_data_importer/rootfs/templates/cronupdate index d1ebeef81..43914576f 100644 --- a/fireflyiii_data_importer/rootfs/templates/cronupdate +++ b/fireflyiii_data_importer/rootfs/templates/cronupdate @@ -7,8 +7,8 @@ PATHTOFILES="$(dirname "${PATHTOFILES}")" bashio::log.info "Running update according to defined schedule. Files located in $PATHTOFILES will be imported" 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 importer:auto-import >/dev/null + su -l www-data -s /bin/bash -c "/usr/local/bin/php /var/www/html/artisan importer:auto-import >/dev/null" else - /usr/local/bin/php /var/www/html/artisan importer:auto-import "$PATHTOFILES"/import_files + su -l www-data -s /bin/bash -c "/usr/local/bin/php /var/www/html/artisan importer:auto-import $PATHTOFILES/import_files" fi ) &>/proc/1/fd/1