summaryrefslogtreecommitdiffstats
path: root/ms
diff options
context:
space:
mode:
authorOleg Mitsura <oleg.mitsura@amdocs.com>2020-05-25 16:22:04 -0400
committerKAPIL SINGAL <ks220y@att.com>2020-05-28 12:20:29 +0000
commitca3b0af302785da8e793a8bf4ab595e9523e9edc (patch)
treeab0c055dd7581e8c079359e244797c1bb889a5dd /ms
parent7dc2dead4c31886e18c7a43eff25e8f81766b638 (diff)
PY-executor missing AUTH_TOKEN in startup script
rev1. initially copied BASIC_AUTH rev2. meant AUTH_TOKEN Issue-ID: CCSDK-2386 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I6278476291d4ef892b249e35f20f43d70fd0e4a0 (cherry picked from commit 6ce6c7d4749b008cfd2484a54edfaf12e473ca08)
Diffstat (limited to 'ms')
-rwxr-xr-xms/py-executor/docker/start.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ms/py-executor/docker/start.sh b/ms/py-executor/docker/start.sh
index 6868ba0e7..2fe1267b5 100755
--- a/ms/py-executor/docker/start.sh
+++ b/ms/py-executor/docker/start.sh
@@ -28,6 +28,12 @@ then
export ARTIFACT_MANAGER_PORT=50053
fi
+if [ -z "${AUTH_TOKEN}" ]
+then
+ echo "AUTH_TOKEN environment variable is not set, using default."
+ export AUTH_TOKEN="Basic Y2NzZGthcHBzOmNjc2RrYXBwcw=="
+fi
+
if [ -z "${LOG_FILE}" ]
then
echo "LOG_FILE environment variable is not set, using default."
@@ -58,4 +64,4 @@ fi
cd /opt/app/onap/python/
-python server.py \ No newline at end of file
+python server.py