Commit e7da080f authored by tianye's avatar tianye

修改配置

parent a4cf5a3d
......@@ -25,7 +25,7 @@ edit_es_info(){
echo -e " 即将修改配置...."
sleep 2
grep -A 10 -w "es:" ${APP_CONF_DIR}/application.yml | \
sed -e "s#host: .*#host: ${ES_HOST}#g"\
sed -i -e "s#host: .*#host: ${ES_HOST}#g"\
-e "s#username: .*#username: ${ES_USERNAME}#g"\
-e "s#password: .*#password: ${ES_PASSWORD}#g"\
-e "s#httpPort: .*#httpPort: ${ES_HTTP_PORT}#g"\
......@@ -37,7 +37,7 @@ edit_mq_info(){
echo -e " 即将修改配置...."
sleep 2
grep -A 6 -w "rabbitmq:" ${APP_CONF_DIR}/application.yml | \
sed -e "s#host: .*#host: ${MQ_HOST}#g"\
sed -i -e "s#host: .*#host: ${MQ_HOST}#g"\
-e "s#username: .*#username: ${MQ_USERNAME}#g"\
-e "s#password: .*#password: ${MQ_PASSWORD}#g"\
-e "s#virtual-host: .*#virtual-host: ${MQ_VHOST}#g"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment