aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Benjamin <max.benjamin@att.com>2020-02-13 18:51:32 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-13 18:51:32 +0000
commit3098fe0ae72dda55600be53069cc336c0c281229 (patch)
tree2ecfd97f7500ab16ceda6371e7452265217ec1cb
parentd6e85d547f5eac006b1da5d3b2ddc19daf8564da (diff)
parentcde7eca94f6eedf0c23635e316f01bb60f5e4a6e (diff)
Merge "Added AAF SSL certs related changes"
-rw-r--r--packages/docker/src/main/docker/docker-files/scripts/start-app.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/docker/src/main/docker/docker-files/scripts/start-app.sh b/packages/docker/src/main/docker/docker-files/scripts/start-app.sh
index cea680c682..75d64fefa0 100644
--- a/packages/docker/src/main/docker/docker-files/scripts/start-app.sh
+++ b/packages/docker/src/main/docker/docker-files/scripts/start-app.sh
@@ -83,6 +83,26 @@ fi
jvmargs="${JVM_ARGS} -Dspring.profiles.active=${ACTIVE_PROFILE} -Djava.security.egd=file:/dev/./urandom -Dlogs_dir=${LOG_PATH} -Dlogging.config=/app/logback-spring.xml $jksargs -Dspring.config.additional-location=$CONFIG_PATH ${SSL_DEBUG} ${DISABLE_SNI}"
+
+read_properties(){
+ while IFS="=" read -r key value; do
+ case "${key}" in
+ '#'*) ;;
+ *)
+ eKey=$(echo $key | tr '[:lower:]' '[:upper:]')
+ export "$eKey"="$value"
+ esac
+ done <<-EOF
+ $1
+ EOF
+}
+
+
+
+if [ -n "${AAF_SSL_CERTS_ENABLED}" ]; then
+read_properties "$(head -n 4 /app/certs/.passphrases)"
+fi
+
echo "JVM Arguments: ${jvmargs}"
java ${jvmargs} -jar app.jar