From 12af0556077d9c8e4d7afd57bc4d8128bcdce7ed Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 18 May 2026 15:43:47 +0200 Subject: [PATCH] Modify cronupdate to use persisted CONFIG_LOCATION Updated cronupdate script to use persisted CONFIG_LOCATION value instead of calling bashio::config. --- fireflyiii_data_importer/rootfs/templates/cronupdate | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fireflyiii_data_importer/rootfs/templates/cronupdate b/fireflyiii_data_importer/rootfs/templates/cronupdate index f86c28b072..b4769c1cb4 100644 --- a/fireflyiii_data_importer/rootfs/templates/cronupdate +++ b/fireflyiii_data_importer/rootfs/templates/cronupdate @@ -4,9 +4,10 @@ set -e # Source environment variables for cron context # shellcheck disable=SC1091 -if [ -f /etc/environment ]; then chmod +x /etc/environment; set -a; /./etc/environment; set +a; fi +if [ -f /etc/environment ]; then set -a; . /etc/environment; set +a; fi -CONFIGSOURCE="$(bashio::config "CONFIG_LOCATION")" +# Use persisted value instead of calling bashio::config (www-data may lack API access) +CONFIGSOURCE="${CONFIG_LOCATION}" ( 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"