diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-06-22 13:53:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-06-22 13:53:59 +0000 |
commit | d95254082c9b7b5a060d8411a2f0bbdb3d90fb2e (patch) | |
tree | 1cab630b3b63088417e7ce7a96b9e3cc18cd1692 /docs/openstack-k8s-workernode.sh | |
parent | 697b21bc9d3c97ea76012049f1dcf05bb1b32db8 (diff) | |
parent | 62178a49cc9e4088019d426636657d9f2980d242 (diff) |
Merge "[COMMON] Fix a few bashisms"
Diffstat (limited to 'docs/openstack-k8s-workernode.sh')
-rw-r--r-- | docs/openstack-k8s-workernode.sh | 8 |
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 |