Restart nginx if needed after vpn removal
This commit is contained in:
parent
acd6db9a6c
commit
0e2a95659a
|
@ -260,6 +260,9 @@ function remove_vpn {
|
||||||
systemctl stop openvpn
|
systemctl stop openvpn
|
||||||
if [ $VPN_TLS_PORT -ne 443 ]; then
|
if [ $VPN_TLS_PORT -ne 443 ]; then
|
||||||
firewall_remove VPN-TLS $VPN_TLS_PORT
|
firewall_remove VPN-TLS $VPN_TLS_PORT
|
||||||
|
else
|
||||||
|
systemctl enable nginx
|
||||||
|
systemctl restart nginx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get -yq remove --purge fastd openvpn easy-rsa
|
apt-get -yq remove --purge fastd openvpn easy-rsa
|
||||||
|
|
Loading…
Reference in New Issue