diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-06-28 12:11:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-06-28 12:11:06 +0000 |
commit | ae7b05560d7c7d59c7ceaa7d7e40bdce67e7d399 (patch) | |
tree | f9b9f59c9eca920363beb55c0ecde823c94b5018 /docs/openstack-k8s-controlnode.sh | |
parent | 38a5a0decaaf9d4a0ae179432528899b73f1587a (diff) | |
parent | 3091ed446f8608e096462b8878333aab4bd27864 (diff) |
Merge changes from topic "bashisms"
* changes:
[COMMON] Fix array variables increments
[COMMON] Fix some bashisms
Diffstat (limited to 'docs/openstack-k8s-controlnode.sh')
-rw-r--r-- | docs/openstack-k8s-controlnode.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/openstack-k8s-controlnode.sh b/docs/openstack-k8s-controlnode.sh index cd219aa56f..d1515a7e5f 100644 --- a/docs/openstack-k8s-controlnode.sh +++ b/docs/openstack-k8s-controlnode.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 |