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
e8ca5049
Commit
e8ca5049
authored
Aug 15, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fb4b98b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
5_restart_by_type.sh
qa_shell_script/5_restart_by_type.sh
+20
-8
No files found.
qa_shell_script/5_restart_by_type.sh
View file @
e8ca5049
...
@@ -17,6 +17,10 @@ config_path=`cat $config_server/config_path.sh`
...
@@ -17,6 +17,10 @@ config_path=`cat $config_server/config_path.sh`
function
restartJavaProject
()
function
restartJavaProject
()
{
{
pwd_path
=
$1
config_server
=
"
$pwd_path
/config_server"
project_path
=
"
$config_server
/project_path.sh"
projects
=(
`
node
$config_server
/get_project_config.js
-type
java
-attr
name
`
)
projects
=(
`
node
$config_server
/get_project_config.js
-type
java
-attr
name
`
)
echo
${
projects
[@]
}
echo
${
projects
[@]
}
for
project
in
${
projects
[@]
}
for
project
in
${
projects
[@]
}
...
@@ -67,6 +71,10 @@ function restartJavaProject()
...
@@ -67,6 +71,10 @@ function restartJavaProject()
function
restartNodeProject
()
function
restartNodeProject
()
{
{
pwd_path
=
$1
config_server
=
"
$pwd_path
/config_server"
project_path
=
"
$config_server
/project_path.sh"
projects
=(
`
node
$config_server
/get_project_config.js
-type
node
-attr
name
`
)
projects
=(
`
node
$config_server
/get_project_config.js
-type
node
-attr
name
`
)
for
project
in
${
projects
[@]
}
for
project
in
${
projects
[@]
}
do
do
...
@@ -97,6 +105,10 @@ function restartNodeProject()
...
@@ -97,6 +105,10 @@ function restartNodeProject()
function
restartPythonProject
()
function
restartPythonProject
()
{
{
pwd_path
=
$1
config_server
=
"
$pwd_path
/config_server"
project_path
=
"
$config_server
/project_path.sh"
projects
=(
`
node
$config_server
/get_project_config.js
-type
python
-attr
name
`
)
projects
=(
`
node
$config_server
/get_project_config.js
-type
python
-attr
name
`
)
for
project
in
${
projects
[@]
}
for
project
in
${
projects
[@]
}
do
do
...
@@ -170,20 +182,20 @@ function restartUiProject()
...
@@ -170,20 +182,20 @@ function restartUiProject()
# }
# }
if
[
"
$project_type
"
=
"java"
]
;
then
if
[
"
$project_type
"
=
"java"
]
;
then
restartJavaProject
restartJavaProject
pwd_path
elif
[
"
$project_type
"
=
"node"
]
;
then
elif
[
"
$project_type
"
=
"node"
]
;
then
restartNodeProject
restartNodeProject
pwd_path
elif
[
"
$project_type
"
=
"python"
]
;
then
elif
[
"
$project_type
"
=
"python"
]
;
then
restartPythonProject
restartPythonProject
pwd_path
elif
[
"
$project_type
"
=
"ui"
]
;
then
elif
[
"
$project_type
"
=
"ui"
]
;
then
restartUiProject
restartUiProject
pwd_path
else
else
echo
"***restart java***"
echo
"***restart java***"
restartJavaProject
$ip
restartJavaProject
pwd_path
echo
"***restart python***"
echo
"***restart python***"
restartPythonProject
$ip
restartPythonProject
pwd_path
echo
"***restart node***"
echo
"***restart node***"
restartNodeProject
$ip
restartNodeProject
pwd_path
echo
"***restart ui***"
echo
"***restart ui***"
restartUiProject
$ip
restartUiProject
pwd_path
fi
fi
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