安装和卸载后应该是restart

Signed-off-by: hitsword <admin@hitsword.com>
master
hitsword 2020-01-09 21:12:04 +08:00
parent bbc7996777
commit 7b630c9021
1 changed files with 2 additions and 2 deletions

View File

@ -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;