Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
ksy-project-docking
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e9a66953
authored
Oct 19, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能开关配置
1 parent
0cd6076e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
sed-configmap/sed-config.sh
sed-configmap/sed-config.sh
View file @
e9a6695
...
...
@@ -21,6 +21,10 @@ kpl_db_name=kpl #平台数据库名字,默认不更改
quota_db_name
=
quota
#平台quota数据库,默认不更改
kpl_service_id
=
kpl3
#默认不更改
kpl_realy_path
=
kpl
#默认不更改
###############功能开关####################
iot_boolean
=
false
grafana_boolean
=
false
mqtt_host
=
#192.168.1.32:1883 ,如果iot功能关闭,此处可以不做配置
###############################修改后端app.yaml################################
sudo sed -i s#redis_host#
$redis_host
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#mysql_host#
$mysql_host
#g `find $config_workspace -type f -name "*.yaml"`
...
...
@@ -40,3 +44,8 @@ sudo sed -i s#kpl_db_name#$kpl_db_name#g `find $config_workspace -type f -name "
sudo sed -i s#quota_db_name#
$quota_db_name
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_service_id#
$kpl_service_id
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_realy_path#
$kpl_realy_path
#g `find $config_workspace -type f -name "*.yaml"`
###########################功能开关配置####################################
sudo sed -i s#iot_boolean#
$iot_boolean
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#mqtt_host#
$mqtt_host
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#grafana_boolean#
$grafana_boolean
#g `find $config_workspace -type f -name "*.yaml"`
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment