From 6c9f3d528ad624c412763993b31f67f335e902ef Mon Sep 17 00:00:00 2001 From: Kevin Messer Date: Sat, 26 Sep 2020 10:45:33 +0200 Subject: [PATCH] feat(install): replace rpm by yum for setup_selinux (#1829) It's a bad practice to install packages via rpm directly. It's better to install all packages with Yum/Dnf. It's also possible to install packages directly via an URL, which is the purpose of this PR. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index be08bbcbf8..a35fa974d1 100755 --- a/install.sh +++ b/install.sh @@ -431,7 +431,7 @@ setup_binary() { setup_selinux() { policy_hint="please install: yum install -y container-selinux selinux-policy-base - rpm -i https://rpm.rancher.io/k3s-selinux-0.1.1-rc1.el7.noarch.rpm + yum install -y https://rpm.rancher.io/k3s-selinux-0.1.1-rc1.el7.noarch.rpm " policy_error=fatal if [ "$INSTALL_K3S_SELINUX_WARN" = true ]; then