Restart nginx if needed after vpn removal

This commit is contained in:
Bob Mottram 2017-09-26 23:48:05 +01:00
parent acd6db9a6c
commit 0e2a95659a
1 changed files with 3 additions and 0 deletions

View File

@ -260,6 +260,9 @@ function remove_vpn {
systemctl stop openvpn
if [ $VPN_TLS_PORT -ne 443 ]; then
firewall_remove VPN-TLS $VPN_TLS_PORT
else
systemctl enable nginx
systemctl restart nginx
fi
apt-get -yq remove --purge fastd openvpn easy-rsa