Skip to content

Commit

Permalink
Merge pull request #69 from briandowns/issue-67
Browse files Browse the repository at this point in the history
Add Ability to Remove Etcd & RKE2 User
  • Loading branch information
briandowns authored Jul 8, 2020
2 parents 4da4529 + 8bd0949 commit 5487e7d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 5487e7d

Please sign in to comment.