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
32f1d669
Commit
32f1d669
authored
Jul 09, 2019
by
Ray Tsang
Committed by
Erik Wilson
Jul 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added K3S_INSTALL_SKIP_SYMLINK flag
parent
61bdd852
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
install.sh
install.sh
+4
-0
No files found.
install.sh
View file @
32f1d669
...
...
@@ -22,6 +22,9 @@ set -e
# - INSTALL_K3S_SKIP_DOWNLOAD
# If set to true will not download k3s hash or binary.
#
# - INSTALL_K3S_SKIP_SYMLINK
# If set to true will not symlink kubectl or crictl to k3s.
#
# - INSTALL_K3S_SKIP_START
# If set to true will not start k3s service.
#
...
...
@@ -369,6 +372,7 @@ download_and_verify() {
# --- add additional utility links ---
create_symlinks
()
{
[
"
${
INSTALL_K3S_BIN_DIR_READ_ONLY
}
"
=
"true"
]
&&
return
[
"
${
INSTALL_K3S_SKIP_SYMLINK
}
"
=
"true"
]
&&
return
if
[
!
-e
${
BIN_DIR
}
/kubectl
]
;
then
info
"Creating
${
BIN_DIR
}
/kubectl symlink to k3s"
$SUDO
ln
-s
k3s
${
BIN_DIR
}
/kubectl
...
...
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