Skip to content

Commit 04128e8

Browse files
committed
chore(uninstall): distinguish server agent
1 parent 8d68431 commit 04128e8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

_scripts/uninstall.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@ set -eo pipefail
33
shopt -s expand_aliases
44

55
/usr/local/bin/k3s-killall.sh
6-
/usr/local/bin/k3s-uninstall.sh
6+
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+
fi
714

815
if [[ -n "${K3S_DATA_DIR}" ]] ; then
916
rm -rf "${K3S_DATA_DIR}/rancher"

0 commit comments

Comments
 (0)