From adb2726735b6fbb2c0fbd74afa71990cd7c7649d Mon Sep 17 00:00:00 2001 From: Tejeev Date: Fri, 24 Oct 2025 16:26:42 -0600 Subject: [PATCH] It's bad form to ask users to pass something they just curled from the internet directly to sh Updated the instructions for uninstalling the rancher-system-agent to use a temporary script file instead of piping directly to sh. --- .../new-user-guides/manage-clusters/clean-cluster-nodes.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/how-to-guides/new-user-guides/manage-clusters/clean-cluster-nodes.md b/docs/how-to-guides/new-user-guides/manage-clusters/clean-cluster-nodes.md index 0bd0562745e..8dfc8c2daf1 100644 --- a/docs/how-to-guides/new-user-guides/manage-clusters/clean-cluster-nodes.md +++ b/docs/how-to-guides/new-user-guides/manage-clusters/clean-cluster-nodes.md @@ -141,7 +141,8 @@ You need to remove the following components from Rancher-provisioned RKE2 nodes: To remove the rancher-system-agent, run the [system-agent-uninstall.sh](https://github.com/rancher/system-agent/blob/main/system-agent-uninstall.sh) script: ``` -curl https://raw.githubusercontent.com/rancher/system-agent/main/system-agent-uninstall.sh | sudo sh +curl https://raw.githubusercontent.com/rancher/system-agent/main/system-agent-uninstall.sh > system-agent-uninstall.sh +sudo sh system-agent-uninstall.sh ``` ### Removing RKE2 @@ -165,7 +166,8 @@ You need to remove the following components from Rancher-provisioned K3s nodes: To remove the rancher-system-agent, run the [system-agent-uninstall.sh](https://github.com/rancher/system-agent/blob/main/system-agent-uninstall.sh) script: ``` -curl https://raw.githubusercontent.com/rancher/system-agent/main/system-agent-uninstall.sh | sudo sh +curl https://raw.githubusercontent.com/rancher/system-agent/main/system-agent-uninstall.sh > system-agent-uninstall.sh +sudo sh system-agent-uninstall.sh ``` ### Removing K3s