wrolpi/controller
lrnselfreliance a248104b2f
Starting a Controller script writes its env file every time and rejects unknown parameters (#883)
The upgrade service reads BRANCH from /tmp/wrolpi-upgrade.env, which upgrade.sh removes when it finishes.  The
Controller wrote that file only when a request had parameters, so starting an upgrade without a branch (the simple UI
sends no body when the field is empty) left the service unable to start, while the API answered success.  A request
like {"branch": "master"} was accepted with the key ignored, the same way.

Now the env file is always written, and a missing branch is the current one, as upgrade.sh chooses; a file left by an
interrupted run no longer chooses it.  Unknown parameters and unknown request keys are errors.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 15:35:23 -06:00
..
api Starting a Controller script writes its env file every time and rejects unknown parameters (#883) 2026-10-27 15:35:23 -06:00
lib Starting a Controller script writes its env file every time and rejects unknown parameters (#883) 2026-10-27 15:35:23 -06:00
templates Debian installs show the Controller drive wizard (#826) 2026-10-13 15:50:20 -06:00
test Starting a Controller script writes its env file every time and rejects unknown parameters (#883) 2026-10-27 15:35:23 -06:00
__init__.py Creating Controller service which will control WROLPi services, admin, SMART, disks, and status. nginx will fallback to Controller UI when React UI is unavailable (such as during upgrades). 2025-12-15 15:48:40 -07:00
conftest.py The hotspot starts on boot (#829) 2026-10-13 19:29:15 -06:00
defaults.py A library on the internal disk gets a database (#832) 2026-10-14 16:15:33 -06:00
main.py The hotspot starts on boot (#829) 2026-10-13 19:29:15 -06:00
requirements.txt build(deps): bump the python-dependencies group with 6 updates (#808) 2026-10-10 11:00:21 -06:00
serve.py Migrating Controller from port 8087 to 80 so that it is more discoverable. Reformatting Controller dashboard to make header at the top. Reformatting navigation bar to handle the new links which prevented Admin from being visible in some screens. 2026-04-09 15:01:05 -06:00