Skip to content

Commit

Permalink
remove created groups and rke2 user
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Downs <[email protected]>
  • Loading branch information
briandowns committed Jul 8, 2020
1 parent fcaac9d commit 8bd0949
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,13 @@ rm -rf /var/lib/kubelet
rm -f ${BIN_DIR}/rke2
rm -f ${KILLALL_RKE2_SH}
userdel etcd
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 8bd0949

Please sign in to comment.