aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/k8s/tools/casablanca
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2019-07-24 14:19:46 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2019-07-24 15:55:56 +0200
commitf8a1ad0768dde0c3babc035b173dc3b87079a7d6 (patch)
tree2a746cef28316a3bff1de8bdf677b299c454cb4e /test/security/k8s/tools/casablanca
parent07adef3d6e19737962ad63b9eae36f18ccab02bb (diff)
k8s: Change virtual environment utility scripts privilege requirements
This patch also extends in-file comment on scripts' requirements and suggested usage. Issue-ID: SECCOM-235 Change-Id: I0dddbad79fb3392ffe35c3e06d4006cd499d9923 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'test/security/k8s/tools/casablanca')
-rwxr-xr-xtest/security/k8s/tools/casablanca/get_ranchercli.sh21
1 files changed, 19 insertions, 2 deletions
diff --git a/test/security/k8s/tools/casablanca/get_ranchercli.sh b/test/security/k8s/tools/casablanca/get_ranchercli.sh
index 76d5594b6..8ffbc5f58 100755
--- a/test/security/k8s/tools/casablanca/get_ranchercli.sh
+++ b/test/security/k8s/tools/casablanca/get_ranchercli.sh
@@ -1,5 +1,23 @@
#!/usr/bin/env bash
+#
+# @file test/security/k8s/tools/casablanca/get_ranchercli.sh
+# @author Pawel Wieczorek <p.wieczorek2@samsung.com>
+# @brief Utility for obtaining Rancher CLI tool
+#
+
+# Dependencies:
+# wget
+# tar
+# coreutils
+#
+# Privileges:
+# Script expects to be run with administrative privileges for accessing /usr/local/bin
+#
+# Usage:
+# # ./get_ranchercli.sh [VERSION [ARCH [SYSTEM]]]
+#
+
# Constants
DEFAULT_VERSION='v0.6.12'
DEFAULT_ARCH='amd64'
@@ -20,8 +38,7 @@ wget "$URL"
tar xf "$ARCHIVE"
# Installation
-echo '# Privilege elevation needed to move Rancher CLI binary to /usr/local/bin'
-sudo mv "${DIRECTORY}/rancher" /usr/local/bin/
+mv "${DIRECTORY}/rancher" /usr/local/bin/
# Cleanup
rmdir "$DIRECTORY"