Browse Source

Attempt to restart containers on Docker shutdown failure

safer-error-handling
Luke Childs 3 years ago
parent
commit
1ad2e7bdcf
  1. 6
      scripts/update/01-run.sh

6
scripts/update/01-run.sh

@ -137,7 +137,11 @@ cd "$UMBREL_ROOT"
EOF EOF
sudo systemctl restart docker || true # Soft fail on environments that don't use systemd sudo systemctl restart docker || true # Soft fail on environments that don't use systemd
sleep 1 sleep 1
./scripts/stop ./scripts/stop || {
# If this doesn't catch the error, start Umbrel again before failing so the web UI is still accessible
./scripts/start
false
}
} }
# Fix broken Nextcloud installs from Umbrel v0.4.0 to be accessible from both # Fix broken Nextcloud installs from Umbrel v0.4.0 to be accessible from both

Loading…
Cancel
Save