mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
feat: install uncloud-uninstall script when provisioning machine
This commit is contained in:
@@ -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, \
|
||||
|
||||
Reference in New Issue
Block a user