From 25d2ce435bb846e67c340d59e035953af0aee395 Mon Sep 17 00:00:00 2001 From: Chris Kim <30601846+Oats87@users.noreply.github.com> Date: Tue, 17 Nov 2020 09:08:38 -0800 Subject: [PATCH] Update install.sh Change from file check to yum check for uninstall script Co-authored-by: Jacob Blain Christen --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 622d7f65cb..4605d3fb3a 100755 --- a/install.sh +++ b/install.sh @@ -674,7 +674,7 @@ rm -rf /var/lib/kubelet rm -f ${BIN_DIR}/k3s rm -f ${KILLALL_K3S_SH} -if [ -r /etc/redhat-release ] || [ -r /etc/centos-release ] || [ -r /etc/oracle-release ]; then +if type yum >/dev/null 2>&1; then yum remove -y k3s-selinux rm -f /etc/yum.repos.d/rancher-k3s-common*.repo fi