mirror of
https://github.com/k3s-io/k3s.git
synced 2025-12-18 23:06:14 -05:00
create policy hint only when all variables defined
Signed-off-by: Will Stephenson <wstephenson@suse.com>
This commit is contained in:
parent
09762a57df
commit
6ba8efd7a1
2 changed files with 7 additions and 6 deletions
11
install.sh
11
install.sh
|
|
@ -612,17 +612,18 @@ setup_selinux() {
|
|||
package_installer=dnf
|
||||
fi
|
||||
|
||||
policy_hint="please install:
|
||||
${package_installer} install -y container-selinux
|
||||
${package_installer} install -y https://${rpm_site}/k3s/${rpm_channel}/common/${rpm_site_infix}/noarch/${available_version}
|
||||
"
|
||||
|
||||
if [ "$INSTALL_K3S_SKIP_SELINUX_RPM" = true ] || can_skip_download_selinux || [ ! -d /usr/share/selinux ]; then
|
||||
info "Skipping installation of SELinux RPM"
|
||||
return
|
||||
fi
|
||||
|
||||
get_k3s_selinux_version
|
||||
|
||||
policy_hint="please install:
|
||||
${package_installer} install -y container-selinux
|
||||
${package_installer} install -y https://${rpm_site}/k3s/${rpm_channel}/common/${rpm_site_infix}/noarch/${available_version}
|
||||
"
|
||||
|
||||
install_selinux_rpm ${rpm_site} ${rpm_channel} ${rpm_target} ${rpm_site_infix}
|
||||
|
||||
policy_error=fatal
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
08ffd92c47a886edd56ce97734f3d67e7f6115f07295dcdcdc6df7ea2c0bee1a install.sh
|
||||
8598e002e61d658fed7b7542fc6d2c66d8da6eae69e088830105d2ee1ffb6d91 install.sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue