diff --git a/scripts/update/01-run.sh b/scripts/update/01-run.sh index cbb2c26..376aff8 100755 --- a/scripts/update/01-run.sh +++ b/scripts/update/01-run.sh @@ -135,9 +135,14 @@ cd "$UMBREL_ROOT" cat < "$UMBREL_ROOT"/statuses/update-status.json {"state": "installing", "progress": 70, "description": "Attempting to autofix Docker failure", "updateTo": "$RELEASE"} EOF - sudo systemctl restart docker + sudo systemctl restart docker || true # Soft fail on environments that don't use systemd sleep 1 - ./scripts/stop + ./scripts/stop || { + # If this doesn't resolve the issue, start containers again before failing so the web UI is still accessible + echo "That didn't work, attempting to restart containers" + ./scripts/start + false + } } # Fix broken Nextcloud installs from Umbrel v0.4.0 to be accessible from both