summaryrefslogtreecommitdiffstats
path: root/ms
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-05-28 18:21:28 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-28 18:21:28 +0000
commit6476ccf7460e59114c8613f43f2dca36a52963bc (patch)
tree711b3e6e76bb891f059f6ee86db5ff4d43b1ed68 /ms
parent2f8733b7fd9fb2f82ce9c2e505e5c27d7b22e5e3 (diff)
parentca3b0af302785da8e793a8bf4ab595e9523e9edc (diff)
Merge "PY-executor missing AUTH_TOKEN in startup script" into frankfurt
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