Skip to content

Commit

Permalink
Merge pull request #604 from briandowns/issue-597-2
Browse files Browse the repository at this point in the history
remove unneeded rm and reorder yum call
  • Loading branch information
briandowns authored Dec 15, 2020
2 parents b81b8b1 + 8299142 commit c1e2c48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bundle/bin/rke2-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ uninstall_disable_services()
uninstall_remove_files()
{
if [ -r /etc/redhat-release ] || [ -r /etc/centos-release ] || [ -r /etc/oracle-release ]; then
rm -f /etc/yum.repos.d/rancher-rke2*.repo
rm -f /etc/sysconfig/rke2-server
yum remove -y "rke2-*"

yum remove -y rke2-*
rm -f /etc/yum.repos.d/rancher-rke2*.repo
fi

find "${INSTALL_RKE2_ROOT}/lib/systemd/system" -name rke2-*.service -type f -delete
Expand Down

0 comments on commit c1e2c48

Please sign in to comment.