From 7b630c90217b902140068ca1e48c48fa9333312b Mon Sep 17 00:00:00 2001 From: hitsword Date: Thu, 9 Jan 2020 21:12:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=92=8C=E5=8D=B8=E8=BD=BD?= =?UTF-8?q?=E5=90=8E=E5=BA=94=E8=AF=A5=E6=98=AFrestart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hitsword --- AMHScript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMHScript b/AMHScript index c3b9436..696c954 100644 --- a/AMHScript +++ b/AMHScript @@ -94,7 +94,7 @@ function amh_module_install() sed -i "/include vhost/a\ \tinclude hyproxy/*.conf;" /usr/local/nginx/conf/nginx.conf; mysql -uroot -p$MysqlPass < ./hyproxy.sql && touch ./InstallComplete && amh module HYProxy-1.0 admin cache,1:2:2,256m,10g,4h,1d; - amh nginx reload; + amh nginx restart; amh_module_status; fi; } @@ -317,7 +317,7 @@ function amh_module_uninstall() rm -f /root/amh/modules/HYProxy-1.0/InstallComplete; mysql -uroot -p${MysqlPass} -B -N -e "DROP TABLE amh.module_hyproxy;DROP TABLE amh.module_hyproxy_cache" ; - amh nginx reload; + amh nginx restart; echo '[OK] HYProxy Uninstall successful.'; else exit;