aboutsummaryrefslogtreecommitdiffstats
path: root/docs/openstack-k8s-workernode.sh
diff options
context:
space:
mode:
authorGuillaume Lambert <guillaume.lambert@orange.com>2021-03-08 21:38:31 +0100
committerGuillaume Lambert <guillaume.lambert@orange.com>2021-06-15 20:18:11 +0200
commit62178a49cc9e4088019d426636657d9f2980d242 (patch)
treeadc2fb79281e74a6ac7a1b6ae53235792526a66d /docs/openstack-k8s-workernode.sh
parent38634d6ef44d9d4954e553445451992e33c1f2f5 (diff)
[COMMON] Fix a few bashisms
pointed out by checkbashisms: - variable name HOSTNAME - source instead of . - variable increments - sleep with suffix And migrate a few shebangs to /bin/sh Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I82981bcff17e88cf824935b841ce37a585ddde00
Diffstat (limited to 'docs/openstack-k8s-workernode.sh')
-rw-r--r--docs/openstack-k8s-workernode.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/openstack-k8s-workernode.sh b/docs/openstack-k8s-workernode.sh
index 3f32d050a9..8b1b9e41ee 100644
--- a/docs/openstack-k8s-workernode.sh
+++ b/docs/openstack-k8s-workernode.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
DOCKER_VERSION=18.09.5
@@ -18,10 +18,10 @@ systemctl daemon-reload
systemctl restart docker
apt-mark hold docker-ce
-IP_ADDR=`ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}'`
-HOSTNAME=`hostname`
+IP_ADDR=$(ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}')
+HOST_NAME=$(hostname)
-echo "$IP_ADDR $HOSTNAME" >> /etc/hosts
+echo "$IP_ADDR $HOST_NAME" >> /etc/hosts
docker login -u docker -p docker nexus3.onap.org:10001