Browse Source

Improved Docker error handling (#1155)

specter-1.7.2
Luke Childs 3 years ago
committed by GitHub
parent
commit
652098002f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      scripts/update/01-run.sh

9
scripts/update/01-run.sh

@ -135,9 +135,14 @@ cd "$UMBREL_ROOT"
cat <<EOF > "$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

Loading…
Cancel
Save