summaryrefslogtreecommitdiffstats
path: root/kubernetes/portal/resources/scripts
diff options
context:
space:
mode:
authorMandeep Khinda <mandeep.khinda@amdocs.com>2018-03-27 01:26:59 +0000
committerMandeep Khinda <mandeep.khinda@amdocs.com>2018-03-29 02:41:22 +0000
commit1d12388430a6112d86200fdabba1f156d6bf2ef6 (patch)
tree6d04dc057848b824cd553357be572e668b63c150 /kubernetes/portal/resources/scripts
parentced8514d3c19dc5ba4ae8e42797fc731ef25d200 (diff)
Standardizing ONAP Portal
-synched up with Beijing (master) -pods come up without cassandra music: sed: couldn't edit /docker-entrypoint-initdb.d/\ zzz_portal.cql: not a regular file ONAPPORTAL webapp in tomcat is failing to star resulting in HTTP 404 robot health Not sure how logging works in beijing so removed some of the ubuntu-init dir creation. need someone familiar with logging to investigate -addressed some CI comments. -removing configmap now that portaldb was fixed Issue-ID: OOM-746 Change-Id: I123d1ec6889db40b1721475a43665ef8efefc057 Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>
Diffstat (limited to 'kubernetes/portal/resources/scripts')
-rw-r--r--kubernetes/portal/resources/scripts/update_hosts.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/kubernetes/portal/resources/scripts/update_hosts.sh b/kubernetes/portal/resources/scripts/update_hosts.sh
deleted file mode 100644
index cd38fafb40..0000000000
--- a/kubernetes/portal/resources/scripts/update_hosts.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-_SRC_HOST=$1
-_DST_HOST=$2
-_IP=`getent hosts ${_SRC_HOST}|cut -d' ' -f1`
-if [ -z ${_IP} ]; then
- echo "Cannot retreive IP for host mapping ${_SRC_HOST} -> ${_DST_HOST}"
- exit 1
-fi
-_REGEX=".*[[:blank:]]${_DST_HOST}$"
-if grep -c -e "${_REGEX}" /etc/hosts > /dev/null 2>&1 ; then
- cp /etc/hosts /tmp/hosts
- sed -i "s/${_REGEX}/${_IP} ${_DST_HOST}/g" /tmp/hosts
- cp /tmp/hosts /etc/hosts
-else
- echo "${_IP} ${_DST_HOST}" >> /etc/hosts
-fi