Skip to content

Commit

Permalink
Merge pull request #162 from anjuchamantha/config_sh
Browse files Browse the repository at this point in the history
Fix jsonConverter duplicate entry issue in configure.sh
  • Loading branch information
Ashi1993 authored Nov 1, 2024
2 parents 211c400 + ba09dc6 commit e66b897
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ create_mysql_database_tables() {
};

add_json_fault_sequence() {
sed -i -e 's|</sequence>|\t<sequence key="jsonConverter"/>\n</sequence>|g' ${WSO2_OB_APIM_HOME}/repository/deployment/server/synapse-configs/default/sequences/_cors_request_handler_.xml
if ! grep -q '<sequence key="jsonConverter"/>' ${WSO2_OB_APIM_HOME}/repository/deployment/server/synapse-configs/default/sequences/_cors_request_handler_.xml; then
sed -i -e 's|</sequence>|\t<sequence key="jsonConverter"/>\n</sequence>|g' ${WSO2_OB_APIM_HOME}/repository/deployment/server/synapse-configs/default/sequences/_cors_request_handler_.xml
fi
}

echo -e "\nReplace hostnames \n"
Expand Down

0 comments on commit e66b897

Please sign in to comment.