Commit 38dc4565 authored by tianye's avatar tianye

gitngone

parent 4acc59e9
#files
*/log
*/data
\ No newline at end of file
......@@ -14,6 +14,39 @@ echo "${env_context}">${sc_dir}/.env
source ${sc_dir}/.env
sudo ln -s ${sc_dir}/.env ${sc_dir}/install.ini 2>/dev/null
compose_files="-f docker-compose-base.yaml"
case ${INSTALL_MODE} in
all_install)
compose_files="${compose_files} -f docker-compose-es.yaml -f docker-compose-mq.yaml -f docker-compose-searchcenter.yaml"
;;
server_install)
compose_files="${compose_files} -f docker-compose-searchcenter.yaml"
;;
server_controller_install)
if [ ${ES_ISUSE_STATUS} != 'false' ];then
echo -e " 使用外部ES\n即将修改配置...."
grep -A 10 -w "es:" ${APP_CONF_DIR}/application.yml | \
sed -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"\
-e "s#tcpPort: .*#tcpPort: ${ES_TCP_PORT}#g"
fi
if [ ${MQ_ISUSE_STATUS} != 'false' ];then
echo -e " 使用外部MQ\n即将修改配置...."
grep -A 6 -w "rabbitmq:" ${APP_CONF_DIR}/application.yml | \
sed -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"
fi
;;
#是否使用外部组件
if [ ${ES_ISUSE_STATUS} != 'false' ];then
echo -e " 使用外部ES\n即将修改配置...."
......
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