parent
bbc7996777
commit
7b630c9021
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue