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;
|
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;
|
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;
|
amh_module_status;
|
||||||
fi;
|
fi;
|
||||||
}
|
}
|
||||||
|
|
@ -317,7 +317,7 @@ function amh_module_uninstall()
|
||||||
rm -f /root/amh/modules/HYProxy-1.0/InstallComplete;
|
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" ;
|
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.';
|
echo '[OK] HYProxy Uninstall successful.';
|
||||||
else
|
else
|
||||||
exit;
|
exit;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue