# Reset Umbrel ############## # Stop Umbrel sudo ~/umbrel/scripts/stop # Nuke Umbrel sudo rm -rf ~/umbrel # Install Umbrel mkdir ~/umbrel curl --location "https://api.github.com/repos/getumbrel/umbrel/tarball/v0.5.3" | tar --extract --gzip --strip-components=1 --directory=/home/umbrel/umbrel # Apply Umbrel Home patches sed -i 's/^check_umbrel_os$/#check_umbrel_os/g' ~/umbrel/scripts/umbrel-os/change-password sed -i 's/if \[\[ -z "${UMBREL_OS:-}" \]\]; then/if [[ -z "${UMBREL_OS:-}" ]] \&\& false; then/g' ~/umbrel/scripts/umbrel-os/status-server/set-status sed -i 's/if \[\[ -z "${UMBREL_OS:-}" \]\]; then/if [[ -z "${UMBREL_OS:-}" ]] \&\& false; then/g' ~/umbrel/scripts/umbrel-os/status-server/setup-iptables sed -i 's/^check_umbrel_os$/#check_umbrel_os/g' ~/umbrel/scripts/umbrel-os/service-monitor # Reset Docker ############## # Stop Docker sudo systemctl stop docker sudo systemctl stop docker.socket # Nuke Docker data dir sudo rm -rf /var/lib/docker # Reset system ############## # Reflash inactive system partition with U2303 factory image # We need to manually specify the spaces URL to bypass the CDN, otherwise mender can't calculate # the full filesize from the headers and fails to install. sudo mender install https://umbrel.nyc3.digitaloceanspaces.com/U2303/umbrel-os.update sudo mender commit # Reboot into new partition sudo reboot