summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone/src/main/assembly/bin
diff options
context:
space:
mode:
Diffstat (limited to 'rulemgt-standalone/src/main/assembly/bin')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index 49ffc53..6594eaf 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -81,6 +81,15 @@ echo ENABLE_ENCRYPT=${ENABLE_ENCRYPT}
KEY_PATH="$main_path/conf/holmes.keystore"
KEY_PASSWORD="holmes"
+
+if [ -f "/opt/app/osaaf/local/org.onap.holmes-rule-mgmt.p12" ]; then
+ KEY_PATH="/opt/app/osaaf/local/org.onap.holmes-rule-mgmt.p12"
+ KEY_PASSWORD=`head -n1 "/opt/app/osaaf/local/mycreds.prop" | cut -d= -f2`
+fi
+
+echo "KEY_PATH=$KEY_PATH"
+echo "KEY_PASS=$KEY_PASSWORD"
+
#HTTPS Configurations
sed -i "s|keyStorePath:.*|keyStorePath: $KEY_PATH|" "$main_path/conf/rulemgt.yml"
sed -i "s|keyStorePassword:.*|keyStorePassword: $KEY_PASSWORD|" "$main_path/conf/rulemgt.yml"