Skip to content

Commit

Permalink
Modify rke2-killall.sh to handle RKE2_DATA_DIR
Browse files Browse the repository at this point in the history
(cherry picked from commit 00a4c5c)
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
aceeric authored and brandond committed Aug 12, 2024
1 parent e76b6fd commit 315cdd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/bin/rke2-killall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ killtree() {
}

getshims() {
COLUMNS=2147483647 ps -e -o pid= -o args= | sed -e 's/^ *//; s/\s\s*/\t/;' | grep -w 'rke2/data/[^/]*/bin/containerd-shim' | cut -f1
COLUMNS=2147483647 ps -e -o pid= -o args= | sed -e 's/^ *//; s/\s\s*/\t/;' | grep -w "${RKE2_DATA_DIR}"'/data/[^/]*/bin/containerd-shim' | cut -f1
}

do_unmount_and_remove() {
Expand Down

0 comments on commit 315cdd9

Please sign in to comment.