Adding disk mount handling to React UI.
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run

This commit is contained in:
Roland 2025-12-16 15:06:41 -07:00
parent 1a02a4eb5b
commit 628b9f3096
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
10 changed files with 600 additions and 51 deletions

View file

@ -39,25 +39,9 @@ upgrade_controller() {
/opt/wrolpi/controller/venv/bin/pip install --upgrade pip
/opt/wrolpi/controller/venv/bin/pip install --upgrade -r /opt/wrolpi/controller/requirements.txt
# Reload systemd in case service file changed
# Start the Controller.
systemctl daemon-reload
# Start Controller
systemctl start wrolpi-controller
# Wait for health check (up to 30 seconds)
echo "Waiting for Controller health check..."
for i in {1..30}; do
if curl -s http://localhost:8087/api/health > /dev/null 2>&1; then
echo "Controller upgraded successfully"
return 0
fi
sleep 1
done
echo "WARNING: Controller health check failed after upgrade"
echo "Check logs: journalctl -u wrolpi-controller -n 50"
return 1
}
upgrade_controller || echo "Controller upgrade failed, continuing..."