Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
3a06d5ed
Commit
3a06d5ed
authored
Feb 17, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
70e29930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
exception_sub_shell.sh
qa_shell_script/exception_sub_shell.sh
+47
-0
No files found.
qa_shell_script/exception_sub_shell.sh
0 → 100644
View file @
3a06d5ed
#!/bin/bash
base_path
=
/home/sub_config_file_dont_rm
function
tranceConfig
()
{
type_
=
$1
source_str
=
$2
target_str
=
$3
ip_host
=
$4
file_name
=
$5
echo
"
source_str:
$source_str
target_str:
$target_str
ip_host:
$ip_host
file_name:
$file_name
"
if
[
"
$type_
"
=
"java"
]
then
sed
-i
"s/
$source_str
/
$target_str
/g"
$base_path
/
$ip_host
/java/
$file_name
sed
-i
"s/
$source_str
/
$target_str
/g"
$base_path
/
$ip_host
/public/java/
$file_name
elif
[
"
$type_
"
=
"ui"
]
then
sed
-i
"s/
$source_str
/
$target_str
/g"
$base_path
/
$ip_host
/ui/
$file_name
elif
[
"
$type_
"
=
"python"
]
then
sed
-i
"s/
$source_str
/
$target_str
/g"
$base_path
/
$ip_host
/python/
$file_name
elif
[
"
$type_
"
=
"node"
]
then
sed
-i
"s/
$source_str
/
$target_str
/g"
$base_path
/
$ip_host
/node/
$file_name
fi
}
tranceConfig java
"pay.debug=0"
"pay.debug=1"
"192.168.4.13"
"xyqb-mall.properties"
tranceConfig java
"pay.debug=0"
"pay.debug=1"
"192.168.4.151"
"xyqb-mall.properties"
tranceConfig java
"pay.debug=0"
"pay.debug=1"
"192.168.4.152"
"xyqb-mall.properties"
tranceConfig java
"192.168.4.3"
"192.168.4.17"
"192.168.4.17"
"*"
tranceConfig java
"sms.is.debug=1"
"sms.is.debug=0"
"192.168.4.24"
"xyqb.properties"
tranceConfig java
"sms.is.debug=1"
"sms.is.debug=0"
"192.168.4.24"
"di-ting.properties"
tranceConfig java
"xyqb.is.debug=1"
"xyqb.is.debug=0"
"192.168.4.24"
"xyqb.properties"
tranceConfig node
"192.168.4.3"
"192.168.4.107"
"192.168.4.12"
"AppBackend.js"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment