We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d68431 commit 04128e8Copy full SHA for 04128e8
1 file changed
_scripts/uninstall.sh
@@ -3,7 +3,14 @@ set -eo pipefail
3
shopt -s expand_aliases
4
5
/usr/local/bin/k3s-killall.sh
6
-/usr/local/bin/k3s-uninstall.sh
+
7
+if [[ -x /usr/local/bin/k3s-uninstall.sh ]] ; then
8
+ /usr/local/bin/k3s-uninstall.sh
9
+fi
10
11
+if [[ -x /usr/local/bin/k3s-agent-uninstall.sh ]] ; then
12
+ /usr/local/bin/k3s-agent-uninstall.sh
13
14
15
if [[ -n "${K3S_DATA_DIR}" ]] ; then
16
rm -rf "${K3S_DATA_DIR}/rancher"
0 commit comments