From c5243e1651b72c791e58b782e95cf3b05c95fb4a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 28 Mar 2024 15:37:46 +0100 Subject: [PATCH] Update cronupdate --- fireflyiii_data_importer/rootfs/templates/cronupdate | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fireflyiii_data_importer/rootfs/templates/cronupdate b/fireflyiii_data_importer/rootfs/templates/cronupdate index d98f73ece..6f4de0211 100644 --- a/fireflyiii_data_importer/rootfs/templates/cronupdate +++ b/fireflyiii_data_importer/rootfs/templates/cronupdate @@ -2,15 +2,12 @@ # shellcheck shell=bash set -e -PATHTOFILES="$(bashio::config "CONFIG_LOCATION")" -PATHTOFILES="$(dirname "${PATHTOFILES}")" - ( -bashio::log.info "Running update according to defined schedule. Files located in $PATHTOFILES will be imported" +bashio::log.info "Running update according to defined schedule. Files located in /config/import_files will be imported ; accessible in the folder /addon_configs/xxx-firefly_data_importer when using the Filebrowser addon" 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 "$PATHTOFILES/import_files" >/dev/null + /usr/local/bin/php /var/www/html/artisan importer:auto-import /config/import_files/import_files >/dev/null else - /usr/local/bin/php /var/www/html/artisan importer:auto-import "$PATHTOFILES/import_files" + /usr/local/bin/php /var/www/html/artisan importer:auto-import /config/import_files/import_files fi ) &>/proc/1/fd/1