diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-06-23 10:59:03 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-06-23 09:02:07 +0000 |
commit | fe651c1283fbdd67bd4482727f5b7298d55df9d8 (patch) | |
tree | 0664a7beafbb2723c70a9769a53f7e869c2d5643 /docs/openstack-k8s-controlnode.sh | |
parent | e1cafc0b0ca244007dd0f0b0dcc84bbf6fa784d5 (diff) |
[COMMON] Revert "[COMMON] Fix a few bashisms"
This reverts commit 62178a49cc9e4088019d426636657d9f2980d242.
This commit introduced regression on portal db config job which is now
unable to start:
/usr/local/bin/docker-entrypoint.sh: line 114: syntax error near unexpected token `('
Issue-ID: OOM-1
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I3cb72cd7625b180b364b713fe942d5956736ebef
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 d1515a7e5f..cd219aa56f 100644 --- a/docs/openstack-k8s-controlnode.sh +++ b/docs/openstack-k8s-controlnode.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash 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}') -HOST_NAME=$(hostname) +IP_ADDR=`ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}'` +HOSTNAME=`hostname` -echo "$IP_ADDR $HOST_NAME" >> /etc/hosts +echo "$IP_ADDR $HOSTNAME" >> /etc/hosts docker login -u docker -p docker nexus3.onap.org:10001 |