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
1a1cf58a
Commit
1a1cf58a
authored
Aug 03, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dfd
parent
37f3b790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
wechat_make.sh
qa_shell_script/special_env_make/wechat_make.sh
+11
-10
No files found.
qa_shell_script/special_env_make/wechat_make.sh
View file @
1a1cf58a
...
@@ -18,16 +18,17 @@ function tranceConfig()
...
@@ -18,16 +18,17 @@ function tranceConfig()
ip_host:
$ip_host
ip_host:
$ip_host
file_name:
$file_name
file_name:
$file_name
"
"
if
[
"
$type_
"
=
"java"
]
expect
-c
"
then
set timeout 10
sed
-i
"N;s#
$source_str
#
$target_str
#g"
$base_path
/
$ip_host
/java/
$file_name
spawn ssh root@
$2
sed
-i
"N;s#
$source_str
#
$target_str
#g"
$base_path
/
$ip_host
/public/java/
$file_name
expect
\"
]#
\"
send
\"
sed -i
\"
N;s#
$source_str
#
$target_str
#g
\"
$base_path
/
$ip_host
/
$type_
/
$file_name
\r\"
elif
[
"
$type_
"
=
"ui"
]
expect
\"
]#
\"
then
send
\"
sed -i
\"
N;s#
$source_str
#
$target_str
#g
\"
$base_path
/
$ip_host
/public/
$type_
/
$file_name
\r\"
sed
-i
"N;s#
$source_str
#
$target_str
#g"
$base_path
/
$ip_host
/ui/
$file_name
expect
\"
]#
\"
sed
-i
"N;s#
$source_str
#
$target_str
#g"
$base_path
/
$ip_host
/public/ui/
$file_name
send
\"
exit
\r\"
fi
expect eof;"
}
}
echo
"部署时间大约需要10分钟,请确保重启应用时,配置文件不再更改。。。"
echo
"部署时间大约需要10分钟,请确保重启应用时,配置文件不再更改。。。"
echo
"step 1 更改配置文件"
echo
"step 1 更改配置文件"
...
...
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