summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone
diff options
context:
space:
mode:
Diffstat (limited to 'engine-d-standalone')
-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"