Parcourir la source

Restart nginx if needed after vpn removal

Bob Mottram il y a 7 ans
Parent
révision
0e2a95659a
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3
    0
      src/freedombone-app-vpn

+ 3
- 0
src/freedombone-app-vpn Voir le fichier

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