diff options
Diffstat (limited to 'rulemgt-standalone')
-rw-r--r-- | rulemgt-standalone/src/main/assembly/bin/run.sh | 21 |
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%:*}" |