Commit 5c60a6b3 authored by qa_quantgroup's avatar qa_quantgroup

删除项目时增加判断

parent fbc2fbce
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment