From f8a1ad0768dde0c3babc035b173dc3b87079a7d6 Mon Sep 17 00:00:00 2001
From: Pawel Wieczorek
Date: Wed, 24 Jul 2019 14:19:46 +0200
Subject: 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
---
test/security/k8s/tools/dublin/get_rke.sh | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
(limited to 'test/security/k8s/tools/dublin')
diff --git a/test/security/k8s/tools/dublin/get_rke.sh b/test/security/k8s/tools/dublin/get_rke.sh
index ffa5c707e..63ef8c77e 100755
--- a/test/security/k8s/tools/dublin/get_rke.sh
+++ b/test/security/k8s/tools/dublin/get_rke.sh
@@ -1,5 +1,22 @@
#!/usr/bin/env bash
+#
+# @file test/security/k8s/tools/dublin/get_rke.sh
+# @author Pawel Wieczorek
+# @brief Utility for obtaining RKE tool
+#
+
+# Dependencies:
+# wget
+# coreutils
+#
+# Privileges:
+# Script expects to be run with administrative privileges for accessing /usr/local/bin
+#
+# Usage:
+# # ./get_rke.sh [VERSION [ARCH [SYSTEM]]]
+#
+
# Constants
DEFAULT_VERSION='v0.2.1'
DEFAULT_ARCH='amd64'
@@ -19,5 +36,4 @@ wget "$URL"
chmod +x "${BINARY}"
# Installation
-echo '# Privilege elevation needed to move RKE binary to /usr/local/bin'
-sudo mv "${BINARY}" "/usr/local/bin/${BINARY%%_*}" # this also renames binary to "rke"
+mv "${BINARY}" "/usr/local/bin/${BINARY%%_*}" # this also renames binary to "rke"
--
cgit 1.2.3-korg