diff --git a/fireflyiii_data_importer/rootfs/templates/cronupdate b/fireflyiii_data_importer/rootfs/templates/cronupdate index 6f4de0211..61de301cd 100644 --- a/fireflyiii_data_importer/rootfs/templates/cronupdate +++ b/fireflyiii_data_importer/rootfs/templates/cronupdate @@ -2,12 +2,14 @@ # shellcheck shell=bash set -e +CONFIGSOURCE="$(bashio::config "CONFIG_LOCATION")" + ( -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" +bashio::log.info "Running update according to defined schedule. Files located in $CONFIGSOURCE/import_files will be imported. If /config, it is 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 /config/import_files/import_files >/dev/null + /usr/local/bin/php /var/www/html/artisan importer:auto-import "$CONFIGSOURCE/import_files" >/dev/null else - /usr/local/bin/php /var/www/html/artisan importer:auto-import /config/import_files/import_files + /usr/local/bin/php /var/www/html/artisan importer:auto-import "$CONFIGSOURCE/import_files" fi ) &>/proc/1/fd/1