summaryrefslogtreecommitdiffstats
path: root/rulemgt-standalone
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2022-08-12 09:07:04 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2022-08-12 09:07:04 +0800
commit857c9da5ed2a2775ac7426d97a99195d671c21b5 (patch)
tree838f1ef136258a9f25ec150e2f0182c653b4acbf /rulemgt-standalone
parenta796bda2f8e2db093ce9f528f6e5960e4aa1b22c (diff)
Supported either HTTP or HTTPS
Issue-ID: HOLMES-511 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn> Change-Id: Ibeb5d19aa5cb69a71b13157f0fd63ed84478aa34
Diffstat (limited to 'rulemgt-standalone')
-rw-r--r--rulemgt-standalone/src/main/assembly/bin/run.sh21
1 files changed, 9 insertions, 12 deletions
diff --git a/rulemgt-standalone/src/main/assembly/bin/run.sh b/rulemgt-standalone/src/main/assembly/bin/run.sh
index f54ca50..d1cebc3 100644
--- a/rulemgt-standalone/src/main/assembly/bin/run.sh
+++ b/rulemgt-standalone/src/main/assembly/bin/run.sh
@@ -92,21 +92,18 @@ echo "KEY_PASS=$KEY_PASSWORD"
sed -i "s|key-store:.*|key-store: $KEY_PATH|" "$main_path/conf/application.yaml"
sed -i "s|key-store-password:.*|key-store-password: $KEY_PASSWORD|" "$main_path/conf/application.yaml"
-if [ ${ENABLE_ENCRYPT} = true ]; then
- sed -i "s|type:\s*https\?$|type: https|" "$main_path/conf/rulemgt.yml"
- sed -i "s|#\?keyStorePath|keyStorePath|" "$main_path/conf/rulemgt.yml"
- sed -i "s|#\?keyStorePassword|keyStorePassword|" "$main_path/conf/rulemgt.yml"
- sed -i "s|#\?validateCerts|validateCerts|" "$main_path/conf/rulemgt.yml"
- sed -i "s|#\?validatePeers|validatePeers|" "$main_path/conf/rulemgt.yml"
+if [ "${ENABLE_ENCRYPT}"x = "true"x ]; then
+ sed -i "s|#\?ssl:|ssl:|" "$main_path/conf/application.yaml"
+ sed -i "s|#\?key-store|key-store|" "$main_path/conf/application.yaml"
+ sed -i "s|#\?key-store-password|key-store-password|" "$main_path/conf/application.yaml"
+ sed -i "s|#\?key-store-type|key-store-type|" "$main_path/conf/application.yaml"
else
- sed -i 's|type:\s*https\?$|type: http|' "$main_path/conf/rulemgt.yml"
- sed -i "s|#\?keyStorePath|#keyStorePath|" "$main_path/conf/rulemgt.yml"
- sed -i "s|#\?keyStorePassword|#keyStorePassword|" "$main_path/conf/rulemgt.yml"
- sed -i "s|#\?validateCerts|#validateCerts|" "$main_path/conf/rulemgt.yml"
- sed -i "s|#\?validatePeers|#validatePeers|" "$main_path/conf/rulemgt.yml"
+ sed -i 's|#\?ssl:|#ssl:|' "$main_path/conf/application.yaml"
+ sed -i "s|#\?key-store|#key-store|" "$main_path/conf/application.yaml"
+ sed -i "s|#\?key-store-password|#key-store-password|" "$main_path/conf/application.yaml"
+ sed -i "s|#\?key-store-type|#key-store-type|" "$main_path/conf/application.yaml"
fi
-
${RUNHOME}/initDB.sh "$JDBC_USERNAME" "$JDBC_PASSWORD" "$DB_NAME" "$DB_PORT" "${URL_JDBC%:*}"