auto remove apache

This commit is contained in:
233boy
2018-04-08 11:47:13 +08:00
parent 53dccdc9ef
commit fd2c9da55d
2 changed files with 26 additions and 1 deletions

View File

@@ -1627,6 +1627,15 @@ install() {
try_enable_bbr
[ $caddy ] && domain_check
install_v2ray
if [[ $caddy || $v2ray_port == "80" ]]; then
if [[ $cmd == "yum" ]]; then
[[ $(pgrep "httpd") ]] && systemctl stop httpd
[[ $(command -v httpd) ]] && yum remove httpd -y
else
[[ $(pgrep "apache2") ]] && service apache2 stop
[[ $(command -v apache2) ]] && apt-get remove apache2* -y
fi
fi
[ $caddy ] && install_caddy
get_ip
config