mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding disk mount handling to React UI.
This commit is contained in:
parent
1a02a4eb5b
commit
628b9f3096
10 changed files with 600 additions and 51 deletions
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue