diff --git a/install.sh b/install.sh index 67da5f777c..5e0512f79f 100755 --- a/install.sh +++ b/install.sh @@ -637,6 +637,14 @@ rm -rf "${BASE_DIR}" rm -rf /var/lib/kubelet rm -f ${BIN_DIR}/rke2 rm -f ${KILLALL_RKE2_SH} + +for u in etcd rke2; do + if id -u \${u} 2>/dev/null; then + userdel \${u} + groupdel \${u} + fi +done + EOF ${SUDO} chmod 755 "${UNINSTALL_RKE2_SH}"