diff options
Diffstat (limited to 'test/security/k8s/tools/get_ranchercli.sh')
-rwxr-xr-x | test/security/k8s/tools/get_ranchercli.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/security/k8s/tools/get_ranchercli.sh b/test/security/k8s/tools/get_ranchercli.sh new file mode 100755 index 000000000..d36a94edb --- /dev/null +++ b/test/security/k8s/tools/get_ranchercli.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Prerequistes +wget https://releases.rancher.com/cli/v0.6.12/rancher-linux-amd64-v0.6.12.tar.gz +tar xf rancher-linux-amd64-v0.6.12.tar.gz + +# Installation +echo '# Privilege elevation needed to move Rancher CLI binary to /usr/local/bin' +sudo mv rancher-v0.6.12/rancher /usr/local/bin/ + +# Cleanup +rmdir rancher-v0.6.12/ +rm rancher-linux-amd64-v0.6.12.tar.gz |