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
589c3d3d
Commit
589c3d3d
authored
Feb 24, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉公网IP对100的判断
parent
b75cabd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
sub_shell.sh
qa_shell_script/sub_shell.sh
+11
-11
No files found.
qa_shell_script/sub_shell.sh
View file @
589c3d3d
...
@@ -22,17 +22,17 @@ do
...
@@ -22,17 +22,17 @@ do
cp
-rf
/home/config_files/java/
*
$dir
/public/java/
cp
-rf
/home/config_files/java/
*
$dir
/public/java/
sed
-i
"s/target_host_name/
${
IP_host_first
}${
ip_last_num
}
/"
$dir
/java/
*
sed
-i
"s/target_host_name/
${
IP_host_first
}${
ip_last_num
}
/"
$dir
/java/
*
sed
-i
"s/target_mq_host_name/
${
IP_host_first
}${
ip_last_num
}
/"
$dir
/java/
*
sed
-i
"s/target_mq_host_name/
${
IP_host_first
}${
ip_last_num
}
/"
$dir
/java/
*
if
[
$ip_last_num
-lt
100
]
;
then
#
if [ $ip_last_num -lt 100 ]; then
sed
-i
"s/target_host_name:7/
${
public_ip
}
:
${
ip_last_num
}
/g"
$dir
/public/java/
*
#
sed -i "s/target_host_name:7/${public_ip}:${ip_last_num}/g" $dir/public/java/*
#gu-bei的回调接口都改成外网接口
#
#gu-bei的回调接口都改成外网接口
sed
-i
"s/callback=http:
\/\/
${
IP_host_first
}${
ip_last_num
}
:7006/callback=http:
\/\/
${
public_ip
}
:
${
ip_last_num
}
006/g"
$dir
/java/gu-bei.properties
#
sed -i "s/callback=http:\/\/${IP_host_first}${ip_last_num}:7006/callback=http:\/\/${public_ip}:${ip_last_num}006/g" $dir/java/gu-bei.properties
sed
-i
"s/pay_notify_url=http:
\/\/
${
IP_host_first
}${
ip_last_num
}
:7006/pay_notify_url=http:
\/\/
${
public_ip
}
:
${
ip_last_num
}
006/g"
$dir
/java/gu-bei.properties
#
sed -i "s/pay_notify_url=http:\/\/${IP_host_first}${ip_last_num}:7006/pay_notify_url=http:\/\/${public_ip}:${ip_last_num}006/g" $dir/java/gu-bei.properties
else
#
else
sed
-i
"s/target_host_name:70/
${
public_ip
}
:
${
ip_last_num
}
/g"
$dir
/public/java/
*
sed
-i
"s/target_host_name:70/
${
public_ip
}
:
${
ip_last_num
}
/g"
$dir
/public/java/
*
#gu-bei的回调接口都改成外网接口
#gu-bei的回调接口都改成外网接口
sed
-i
"s/callback=http:
\/\/
${
IP_host_first
}${
ip_last_num
}
:7006/callback=http:
\/\/
${
public_ip
}
:
${
ip_last_num
}
06/g"
$dir
/java/gu-bei.properties
sed
-i
"s/callback=http:
\/\/
${
IP_host_first
}${
ip_last_num
}
:7006/callback=http:
\/\/
${
public_ip
}
:
${
ip_last_num
}
06/g"
$dir
/java/gu-bei.properties
sed
-i
"s/pay_notify_url=http:
\/\/
${
IP_host_first
}${
ip_last_num
}
:7006/pay_notify_url=http:
\/\/
${
public_ip
}
:
${
ip_last_num
}
06/g"
$dir
/java/gu-bei.properties
sed
-i
"s/pay_notify_url=http:
\/\/
${
IP_host_first
}${
ip_last_num
}
:7006/pay_notify_url=http:
\/\/
${
public_ip
}
:
${
ip_last_num
}
06/g"
$dir
/java/gu-bei.properties
fi
#
fi
sed
-i
"s/target_host_name/
${
public_ip
}
/g"
$dir
/public/java/
*
sed
-i
"s/target_host_name/
${
public_ip
}
/g"
$dir
/public/java/
*
sed
-i
"s/target_mq_host_name/
${
IP_host_first
}${
ip_last_num
}
/"
$dir
/public/java/
*
sed
-i
"s/target_mq_host_name/
${
IP_host_first
}${
ip_last_num
}
/"
$dir
/public/java/
*
sed
-i
"s/
${
public_ip
}
:3306/
${
IP_host_first
}${
ip_last_num
}
:3306/g"
$dir
/public/java/
*
sed
-i
"s/
${
public_ip
}
:3306/
${
IP_host_first
}${
ip_last_num
}
:3306/g"
$dir
/public/java/
*
...
...
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