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
b0454651
Commit
b0454651
authored
Jul 09, 2024
by
Jake Hyde
Committed by
Brad Davidson
Jul 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add data-dir to uninstall and killall scripts
Signed-off-by:
Jake Hyde
<
jakefhyde@gmail.com
>
parent
d1709d60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
install.sh
install.sh
+7
-3
install.sh.sha256sum
install.sh.sha256sum
+1
-1
No files found.
install.sh
View file @
b0454651
...
...
@@ -767,7 +767,9 @@ create_killall() {
#!/bin/sh
[
$(
id
-u
)
-eq 0 ] || exec sudo
$0
$@
for bin in /var/lib/rancher/k3s/data/**/bin/; do
K3S_DATA_DIR=
${
K3S_DATA_DIR
:-
/var/lib/rancher/k3s
}
for bin in
${
K3S_DATA_DIR
}
/data/**/bin/; do
[ -d
$bin
] && export PATH=
$PATH
:
$bin
:
$bin
/aux
done
...
...
@@ -841,7 +843,7 @@ do_unmount_and_remove() {
}
do_unmount_and_remove '/run/k3s'
do_unmount_and_remove
'/var/lib/rancher/k3s'
do_unmount_and_remove
"
${
K3S_DATA_DIR
}
"
do_unmount_and_remove '/var/lib/kubelet/pods'
do_unmount_and_remove '/var/lib/kubelet/plugins'
do_unmount_and_remove '/run/netns/cni-'
...
...
@@ -868,6 +870,8 @@ create_uninstall() {
set -x
[ \
$(
id
-u
)
-eq 0 ] || exec sudo \
$0
\
$@
K3S_DATA_DIR=\
${
K3S_DATA_DIR
:-
/var/lib/rancher/k3s
}
${
KILLALL_K3S_SH
}
if command -v systemctl; then
...
...
@@ -901,7 +905,7 @@ done
rm -rf /etc/rancher/k3s
rm -rf /run/k3s
rm -rf /run/flannel
rm -rf
/var/lib/rancher/k3s
rm -rf
\
${
K3S_DATA_DIR
}
rm -rf /var/lib/kubelet
rm -f
${
BIN_DIR
}
/k3s
rm -f
${
KILLALL_K3S_SH
}
...
...
install.sh.sha256sum
View file @
b0454651
a5a95f60c57049a1d4eb11953e60d80f5f7e2fae4c7865959da669b48a44e668
install.sh
937085bbac8e3b55209739762e05c2c1006c4f4fe65dba01908f3544dc47da27
install.sh
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