Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3d27804c
Commit
3d27804c
authored
Sep 10, 2021
by
Brad Davidson
Committed by
Brad Davidson
Sep 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Anything not EL7 is EL8
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
b4d8c641
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
install.sh
install.sh
+6
-3
No files found.
install.sh
View file @
3d27804c
...
...
@@ -465,9 +465,13 @@ setup_selinux() {
Please disable SELinux before installing k3s.
"
else
maj_ver
=
$(
echo
"
$VERSION_ID
"
|
sed
-E
-e
"s/^([0-9]+)
\.
?[0-9]*
$/
\1
/"
)
if
[
"
${
maj_ver
:-
7
}
"
!=
7
]
;
then
maj_ver
=
8
fi
policy_hint
=
"please install:
yum install -y container-selinux selinux-policy-base
yum install -y https://
${
rpm_site
}
/k3s/
${
rpm_channel
}
/common/centos/
${
VERSION_ID
:-
7
}
/noarch/k3s-selinux-0.3-0.el
${
VERSION_ID
:-
7
}
.noarch.rpm
yum install -y https://
${
rpm_site
}
/k3s/
${
rpm_channel
}
/common/centos/
${
maj_ver
}
/noarch/k3s-selinux-0.3-0.el
${
maj_ver
}
.noarch.rpm
"
fi
...
...
@@ -496,8 +500,7 @@ setup_selinux() {
# --- if on an el7/el8 system, install k3s-selinux
install_selinux_rpm
()
{
if
[
-r
/etc/redhat-release
]
||
[
-r
/etc/centos-release
]
||
[
-r
/etc/oracle-release
]
;
then
dist_version
=
"
$(
.
/etc/os-release
&&
echo
"
$VERSION_ID
"
)
"
maj_ver
=
$(
echo
"
$dist_version
"
|
sed
-E
-e
"s/^([0-9]+)
\.
?[0-9]*
$/
\1
/"
)
maj_ver
=
$(
echo
"
$VERSION_ID
"
|
sed
-E
-e
"s/^([0-9]+)
\.
?[0-9]*
$/
\1
/"
)
set
+o noglob
$SUDO
rm
-f
/etc/yum.repos.d/rancher-k3s-common
*
.repo
set
-o
noglob
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment