feat: install uncloud-uninstall script when provisioning machine

This commit is contained in:
Pavel Sviderski
2025-03-04 12:50:29 +10:00
parent 91d58bc701
commit 90e357a1dc
2 changed files with 19 additions and 1 deletions
+5 -1
View File
@@ -41,7 +41,7 @@ if [ "$EUID" -ne 0 ]; then
fi
# Confirm before proceeding.
log "⚠️This script will uninstall Uncloud and remove ALL service containers deployed to this machine."
log "⚠️This script will uninstall Uncloud and remove ALL Uncloud managed containers on this machine."
log "The following actions will be performed:"
echo "- Remove Uncloud systemd services"
echo "- Remove Uncloud binaries and data"
@@ -128,6 +128,10 @@ else
log "WireGuard interface uncloud not found."
fi
log "⏳ Removing uninstall script..."
rm -fv "${INSTALL_BIN_DIR}/uncloud-uninstall"
log "✓ Uninstall script removed."
echo
log "✅ Uncloud has been uninstalled successfully!"
log "Note: Docker installation was preserved. If you want to completely remove Docker as well, \