优化代码

Signed-off-by: HITSword <admin@huayizhiyun.com>
This commit is contained in:
HITSword
2020-01-08 18:30:35 +08:00
parent 4b5161ee97
commit 9f50b69cc4
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ function amh_module_install()
rm -rf /root/amh/modules/$module_name;
done;
#Delete conflict modules
if [ -f "/root/amh/modules/limit_req2_nginx_module-1.2/InstallComplete" ]; then
if ls /root/amh/modules/ | grep -q 'limit_req2_nginx_module-1.2'; then
amh module limit_req2_nginx_module-1.2 uninstall force;
amh module limit_req2_nginx_module-1.2 delete y;
fi;