自动删除冲突插件

Signed-off-by: HITSword <admin@huayizhiyun.com>
master
HITSword 2020-01-08 16:55:20 +08:00
parent c2a1a43625
commit 4b5161ee97
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ function amh_module_install()
#amh module $module_name delete y;
rm -rf /root/amh/modules/$module_name;
done;
#Delete conflict modules
if [ -f "/root/amh/modules/limit_req2_nginx_module-1.2/InstallComplete" ]; then
amh module limit_req2_nginx_module-1.2 uninstall force;
amh module limit_req2_nginx_module-1.2 delete y;
fi;
#install PDO_MYSQL module and set InnoDB_Engine On
if ! ls /root/amh/modules/ | grep -q 'PDO_MYSQL-1.0.2'; then
amh module download PDO_MYSQL-1.0.2;