修复卸载时没清理日志的问题。

Signed-off-by: HITSword <admin@huayizhiyun.com>
This commit is contained in:
HITSword
2020-01-09 18:11:30 +08:00
parent 5a3b977f1b
commit ac3e0ca8c9
2 changed files with 20 additions and 2 deletions
+3 -1
View File
@@ -247,7 +247,6 @@ function amh_module_admin()
elif [ "$action" == 'del' ]; then
php ${module_dir}hyproxy-cli.php --action='del' --server_name=${domain}
echo "[OK] successfully delete $domain HYProxy.";
amh nginx reload;
elif [ "$action" == 'start' ]; then
php ${module_dir}hyproxy-cli.php --action='edit' --server_name=${domain} --field_name='status' --value='start';
@@ -279,6 +278,9 @@ function amh_module_uninstall()
{
if amh_module_status ; then
#clean proxys
php ${module_dir}hyproxy-cli.php --action='uninstall';
#uninstall nginx modules
Cpunum=`cat /proc/cpuinfo |grep 'processor'|wc -l`;
nginx_configure='--prefix=/usr/local/nginx --user=www --group=www --with-http_ssl_module --with-http_gzip_static_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --without-http_uwsgi_module --without-http_scgi_module --with-ipv6';