mirror of
https://github.com/smittix/intercept.git
synced 2026-05-24 16:54:48 -07:00
Running via sudo creates data/radiosonde/ as root. On next run the config write fails with an unhandled OSError, Flask returns an HTML 500, and the frontend shows a cryptic JSON parse error. Three-layer fix: - start.sh: pre-create known data dirs before chown, add certs/ to the list, export INTERCEPT_SUDO_UID/GID for runtime use - generate_station_cfg: catch OSError with actionable message, chown newly created files to the real user via _fix_data_ownership() - start_radiosonde: wrap config generation in try/except so it returns JSON instead of letting Flask emit an HTML error page Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7.2 KiB
Executable File
7.2 KiB
Executable File