From 6e9c0731820ee92f225dddb5542952b97c9442da Mon Sep 17 00:00:00 2001 From: Idan Shalom Date: Wed, 1 Jul 2020 11:44:23 +0000 Subject: [PATCH] Edit startup.sh to use nano port env var if defined Change-Id: Ie5029c8f7072588f930ceb98da9685f152d175e2 Signed-off-by: Idan Shalom --- RIC-E2-TERMINATION/container-tag.yaml | 2 +- RIC-E2-TERMINATION/startup.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RIC-E2-TERMINATION/container-tag.yaml b/RIC-E2-TERMINATION/container-tag.yaml index a007d6b..1d16a23 100644 --- a/RIC-E2-TERMINATION/container-tag.yaml +++ b/RIC-E2-TERMINATION/container-tag.yaml @@ -1,3 +1,3 @@ # The Jenkins job requires a tag to build the Docker image. # Global-JJB script assumes this file is in the repo root. -tag: 5.0.7 +tag: 5.0.8 diff --git a/RIC-E2-TERMINATION/startup.sh b/RIC-E2-TERMINATION/startup.sh index 600a59e..dc3d679 100644 --- a/RIC-E2-TERMINATION/startup.sh +++ b/RIC-E2-TERMINATION/startup.sh @@ -9,5 +9,8 @@ serviceIp=$(env | grep $fullServiceName | awk '{split($0,ip,"="); print ip[2]}') echo "service ip is $serviceIp" sed -i "s/local-ip=127.0.0.1/local-ip=$serviceIp/g" "/opt/e2/config/config.conf" sed -i "s/external-fqdn=e2t.com/external-fqdn=$serviceIp/g" "/opt/e2/config/config.conf" +if [[ -v nano ]]; then + sed -i "s/nano=38000/nano=$nano/g" "/opt/e2/config/config.conf" +fi cat "/opt/e2/config/config.conf" ./e2 -p config -f config.conf -- 2.16.6