Browse Source

Restart nginx if needed after vpn removal

Bob Mottram 7 years ago
parent
commit
0e2a95659a
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone-app-vpn

+ 3
- 0
src/freedombone-app-vpn View File

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