mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-04 00:01:36 +01:00
The upstream Docker image's write_config.sh hardcodes FILE_SERVER_ROOT = "http://<SERVER_IP>/seafhttp" in seahub_settings.py, overwriting the addon's configured value on first run. This causes download URLs to contain an incorrect /seafhttp prefix and miss the file server port. Fix by creating a helper script (apply_addon_urls.sh) that re-applies the addon's FILE_SERVER_ROOT and SERVICE_URL right before Seafile services start, after all upstream init/setup/update scripts complete. Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>