Commit ccadecf8 by wangtingwei

域å去掉荣è冗余配置

1 parent 9abf93a0
Showing with 3 additions and 24 deletions
#!/bin/bash :#!/bin/bash
######################项目所在路径################################# ######################项目所在路径#################################
#workspace=/home/wangtingwei/workspace #workspace=/home/wangtingwei/workspace
config_workspace=/root/configmap-kpl/ #configmap模板所在的路径 config_workspace=/root/configmap-kpl/ #configmap模板所在的路径
################kpl组件变量信息########################## ################kpl组件变量信息##########################
kpl_frontend=http://106.38.203.204:30180 #kpl前端访问主页 kpl_backend=http://106.38.203.204:30180 #kpl后端api
kpl_backend=http://106.38.203.204:30200 #kpl后端api kpl_back_socket=ws://106.38.203.204:30180 # https对应wss
kpl_back_socket=ws://106.38.203.204:30200 # https对应wss
kpl_imageproxy=http://106.38.203.204:30202 #kpl图片服务器api
kpl_deploy=http://106.38.203.204:30201 #kpl部署api
#usercenter_frontend=http://106.38.203.204:30302 #用户中心前端
#usercenter_backend=http://106.38.203.204:30300 #用户中心后端
core_nginx=http://106.38.203.204:30099
#visit_uc_frontend=106.38.203.204 #user-center前端的主机ip 或域名
mobile_frontend=http://106.38.203.204:30181 #kpl手机端扫码页面
#custom_source=kpl
kpl_stream=106.38.203.204:30205 #ssh服务 kpl_stream=106.38.203.204:30205 #ssh服务
kpl_admin_frontend=http://106.38.203.204:30182
###############其他依赖服务变量信息######################################### ###############其他依赖服务变量信息#########################################
#autodl_es=http://192.168.1.51:9200
mysql_host=192.168.1.53:3306 mysql_host=192.168.1.53:3306
mysql_user=root mysql_user=root
mysql_password=root mysql_password=root
...@@ -40,20 +29,10 @@ sudo sed -i s#harbor_host#$harbor_host#g `find $config_workspace -type f -name " ...@@ -40,20 +29,10 @@ sudo sed -i s#harbor_host#$harbor_host#g `find $config_workspace -type f -name "
sudo sed -i s#redis_password#$redis_password#g `find $config_workspace -type f -name "*.yaml"` sudo sed -i s#redis_password#$redis_password#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#mysql_password#$mysql_password#g `find $config_workspace -type f -name "*.yaml"` sudo sed -i s#mysql_password#$mysql_password#g `find $config_workspace -type f -name "*.yaml"`
################################################################################### ###################################################################################
sudo sed -i s#kpl_deploy#$kpl_deploy#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#core_nginx#$core_nginx#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_frontend#$kpl_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#visit_uc_frontend#$visit_uc_frontend#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_stream#$kpl_stream#g `find $config_workspace -type f -name "*.yaml"` sudo sed -i s#kpl_stream#$kpl_stream#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_admin_frontend#$kpl_admin_frontend#g `find $config_workspace -type f -name "*.yaml"`
###############################修改前端app.yaml####################################### ###############################修改前端app.yaml#######################################
sudo sed -i s#kpl_backend#$kpl_backend#g `find $config_workspace -type f -name "*.yaml"` sudo sed -i s#kpl_backend#$kpl_backend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#usercenter_frontend#$usercenter_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#usercenter_backend#$usercenter_backend#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_back_socket#$kpl_back_socket#g `find $config_workspace -type f -name "*.yaml"` sudo sed -i s#kpl_back_socket#$kpl_back_socket#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_imageproxy#$kpl_imageproxy#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#mobile_frontend#$mobile_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#custom_source#$custom_source#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#hb_host#$hb_host#g `find $config_workspace -type f -name "*.yaml"` sudo sed -i s#hb_host#$hb_host#g `find $config_workspace -type f -name "*.yaml"`
#######################################kpl################################ #######################################kpl################################
sudo sed -i s#kpl_db_name#$kpl_db_name#g `find $config_workspace -type f -name "*.yaml"` sudo sed -i s#kpl_db_name#$kpl_db_name#g `find $config_workspace -type f -name "*.yaml"`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!