From 3ad1b40ecfb7d026578ee99ddcf42cf1334c022f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 28 May 2026 09:19:15 +0000 Subject: [PATCH] Run cron artisan import as www-data to prevent permission conflicts --- 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 494d55a945..eff247b11b 100644 --- a/fireflyiii_data_importer/rootfs/templates/cronupdate +++ b/fireflyiii_data_importer/rootfs/templates/cronupdate @@ -15,8 +15,8 @@ CONFIGSOURCE="${CONFIG_LOCATION}" echo "[INFO] Running update according to defined schedule. Files located in $CONFIGSOURCE/import_files will be imported." if [ "${SILENT_MODE}" = "true" ]; then echo "[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 "$CONFIGSOURCE/import_files" >/dev/null + sudo -Eu www-data /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 "$CONFIGSOURCE/import_files" + sudo -Eu www-data /usr/local/bin/php /var/www/html/artisan importer:auto-import "$CONFIGSOURCE/import_files" fi ) &>/proc/1/fd/1