Przeglądaj źródła

Restart nginx if needed after vpn removal

Bob Mottram 7 lat temu
rodzic
commit
0e2a95659a
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3
    0
      src/freedombone-app-vpn

+ 3
- 0
src/freedombone-app-vpn Wyświetl plik

@@ -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