aboutsummaryrefslogtreecommitdiffstats
path: root/cmso-optimizer/src/main/docker/extra-files
diff options
context:
space:
mode:
authorVikas Varma <vv8305@att.com>2019-04-16 16:31:16 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-16 16:31:16 +0000
commit58871ba77f801f4794fed5573feefc3004cc55e9 (patch)
tree285e9ac85befe55592f8494d9421864ec46a334d /cmso-optimizer/src/main/docker/extra-files
parent721e6aa842fd00b8c71a255e95f326dc71c6de23 (diff)
parentb1ba8ef51edabee26acaf74e226eeb269297aec7 (diff)
Merge "More checkstyle changes for Dublin"
Diffstat (limited to 'cmso-optimizer/src/main/docker/extra-files')
-rw-r--r--cmso-optimizer/src/main/docker/extra-files/startService.sh21
1 files changed, 19 insertions, 2 deletions
diff --git a/cmso-optimizer/src/main/docker/extra-files/startService.sh b/cmso-optimizer/src/main/docker/extra-files/startService.sh
index 6efd912..0549dfd 100644
--- a/cmso-optimizer/src/main/docker/extra-files/startService.sh
+++ b/cmso-optimizer/src/main/docker/extra-files/startService.sh
@@ -1,11 +1,28 @@
#!/bin/sh
AUTHENTICATION=${AUTHENTICATION:-proprietary-auth}
-JAVA_TRUSTSTORE=${JAVA_TRUSTSTORE:-etc/config/truststoreONAPall.jks}
VM_ARGS="${VM_ARGS} -Dserver.local.startpath=${RESOURCES_HOME}"
-VM_ARGS="${VM_ARGS} -Djavax.net.ssl.trustStore==${JAVA_TRUSTSTORE}"
+if [ "${JAVA_TRUSTSTORE}" != '']
+then
+ VM_ARGS="${VM_ARGS} -Djavax.net.ssl.trustStore=${JAVA_TRUSTSTORE}"
+fi
+
+if [ "${JAVA_TRUSTSTORE_PASSWORD}" != '']
+then
+ VM_ARGS="${VM_ARGS} -Djavax.net.ssl.trustStorePassword=${JAVA_TRUSTSTORE_PASSWORD}"
+fi
+
+if [ "${SSL_KEYSTORE}" != '' ]
+then
+ VM_ARGS="${VM_ARGS} -Dserver.ssl.key-store=${SSL_KEYSTORE}"
+fi
+
+if [ "${SSL_KEYSTORE_PASSWORD}" != '' ]
+then
+ VM_ARGS="${VM_ARGS} -Dserver.ssl.key-password=${SSL_KEYSTORE_PASSWORD}"
+fi
echo "VM_ARGS="${VM_ARGS}