X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Fengine-management.git;a=blobdiff_plain;f=engine-d-standalone%2Fsrc%2Fmain%2Fassembly%2Fbin%2Frun.sh;fp=engine-d-standalone%2Fsrc%2Fmain%2Fassembly%2Fbin%2Frun.sh;h=f4c76cb4c95a57a90267019f1c075018ca1f9e8f;hp=2c58d3518e55f06a4f1547fe65456cc0f570ceb5;hb=37ffaee471e8095a102c877cbc333305aad593dc;hpb=c4bd70c1f74cd04c441f76de4359e166a089660a 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"