summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone/src/main/assembly
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2022-08-12 09:07:45 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2022-08-12 09:07:45 +0800
commit37ffaee471e8095a102c877cbc333305aad593dc (patch)
tree0020b4d1ed11e05bc1dd92d98ed8e86fc2d2be8b /engine-d-standalone/src/main/assembly
parentc4bd70c1f74cd04c441f76de4359e166a089660a (diff)
Supported either HTTP or HTTPS
Issue-ID: HOLMES-511 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn> Change-Id: I846694f584f49e74a3c3f603ee245f9b4ad28a36
Diffstat (limited to 'engine-d-standalone/src/main/assembly')
-rw-r--r--engine-d-standalone/src/main/assembly/bin/run.sh18
1 files changed, 8 insertions, 10 deletions
diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh
index 2c58d35..f4c76cb 100644
--- a/engine-d-standalone/src/main/assembly/bin/run.sh
+++ b/engine-d-standalone/src/main/assembly/bin/run.sh
@@ -92,17 +92,15 @@ 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}"x = "true"x ]; then
- sed -i "s|type:\s*https\?$|type: https|" "$main_path/conf/engine-d.yml"
- sed -i "s|#\?keyStorePath|keyStorePath|" "$main_path/conf/engine-d.yml"
- sed -i "s|#\?keyStorePassword|keyStorePassword|" "$main_path/conf/engine-d.yml"
- sed -i "s|#\?validateCerts|validateCerts|" "$main_path/conf/engine-d.yml"
- sed -i "s|#\?validatePeers|validatePeers|" "$main_path/conf/engine-d.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"
else
- sed -i 's|type:\s*https\?$|type: http|' "$main_path/conf/engine-d.yml"
- sed -i "s|#\?keyStorePath|#keyStorePath|" "$main_path/conf/engine-d.yml"
- sed -i "s|#\?keyStorePassword|#keyStorePassword|" "$main_path/conf/engine-d.yml"
- sed -i "s|#\?validateCerts|#validateCerts|" "$main_path/conf/engine-d.yml"
- sed -i "s|#\?validatePeers|#validatePeers|" "$main_path/conf/engine-d.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
cat "$main_path/conf/application.yaml"