summaryrefslogtreecommitdiffstats
path: root/kud/hosting_providers/baremetal
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-06-05 18:32:16 +0300
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-06-06 12:31:21 +0000
commit540c5b56469b52fdaccee624f582ce1c3e06efe9 (patch)
treefa86dc243690dc92062922a86732496e68472eb7 /kud/hosting_providers/baremetal
parent0bfd22fabb43a4b13a56eb89e00a2d1ce37581db (diff)
Remove the requirement to run aio.sh as root
However user needs to be in sudoers without password needed to able to run needed steps with sudo. Issue-ID: MULTICLOUD-672 Change-Id: I798b9dd9dad4175c2b43700bfe801d34b578fe97 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Diffstat (limited to 'kud/hosting_providers/baremetal')
-rwxr-xr-xkud/hosting_providers/baremetal/aio.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/kud/hosting_providers/baremetal/aio.sh b/kud/hosting_providers/baremetal/aio.sh
index 5b448183..416a1fef 100755
--- a/kud/hosting_providers/baremetal/aio.sh
+++ b/kud/hosting_providers/baremetal/aio.sh
@@ -12,11 +12,6 @@ set -o errexit
set -o nounset
set -o pipefail
-if [[ $(whoami) != 'root' ]];then
- echo "This bash script must be executed as root user"
- exit 1
-fi
-
aio_dir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)
cd ${aio_dir}/../vagrant
@@ -53,7 +48,7 @@ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod og-wx ~/.ssh/authorized_keys
echo "Enabling nested-virtualization"
-./node.sh
+sudo ./node.sh
echo "Deploying KUD project"
./installer.sh | tee kud_installer.log