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
5c60a6b3
Commit
5c60a6b3
authored
Jul 26, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除项目时增加判断
parent
fbc2fbce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
3_link_config_file_by_name.sh
qa_shell_script/3_link_config_file_by_name.sh
+5
-1
No files found.
qa_shell_script/3_link_config_file_by_name.sh
View file @
5c60a6b3
...
@@ -12,12 +12,14 @@ then
...
@@ -12,12 +12,14 @@ then
rm
-rf
/etc/nginx/conf.d
rm
-rf
/etc/nginx/conf.d
ln
-s
$config_path
/nginx_conf.d /etc/nginx/conf.d
ln
-s
$config_path
/nginx_conf.d /etc/nginx/conf.d
nginx
-t
;
nginx
-s
reload
nginx
-t
;
nginx
-s
reload
else
elif
[
-n
"
$project
"
]
then
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
sh
$config_server
/show_info.sh
$project
连接配置文件
$desc
$3
sh
$config_server
/show_info.sh
$project
连接配置文件
$desc
$3
project_type
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
type
`
project_type
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
type
`
file
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
config_file
`
file
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
config_file
`
echo
"rm -rf /home/quant_group/
${
project
}
/
$file
"
rm
-rf
/home/quant_group/
$project
/
$file
rm
-rf
/home/quant_group/
$project
/
$file
if
[
"
$project_type
"
=
"ui"
]
if
[
"
$project_type
"
=
"ui"
]
then
then
...
@@ -44,4 +46,6 @@ else
...
@@ -44,4 +46,6 @@ else
ln
-s
$config_path
/pem_file /home/quant_group/xyqb-mall/baitiao
ln
-s
$config_path
/pem_file /home/quant_group/xyqb-mall/baitiao
fi
fi
fi
fi
else
echo
"请输入项目名称project"
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