fix(firefly): set Data Importer APP_URL for subdirectory install (#14847)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michel Roegl-Brunner 2026-06-01 15:58:32 +02:00 committed by GitHub
parent 6a7391f430
commit 465996653a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,13 @@ msg_ok "Configured Firefly III"
msg_info "Configuring Data Importer" msg_info "Configuring Data Importer"
cp /opt/firefly/dataimporter/.env.example /opt/firefly/dataimporter/.env cp /opt/firefly/dataimporter/.env.example /opt/firefly/dataimporter/.env
sed -i "s#FIREFLY_III_URL=#FIREFLY_III_URL=http://${LOCAL_IP}#g" /opt/firefly/dataimporter/.env sed -i \
-e "s#FIREFLY_III_URL=#FIREFLY_III_URL=http://${LOCAL_IP}#g" \
-e "s|^APP_URL=.*|APP_URL=http://${LOCAL_IP}/dataimporter|" \
-e "s|^ASSET_URL=.*|ASSET_URL=/dataimporter|" \
/opt/firefly/dataimporter/.env
cd /opt/firefly/dataimporter
$STD php artisan config:clear
chown -R www-data:www-data /opt/firefly chown -R www-data:www-data /opt/firefly
msg_ok "Configured Data Importer" msg_ok "Configured Data Importer"