@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user