ソースを参照

Restart nginx if needed after vpn removal

Bob Mottram 7 年 前
コミット
0e2a95659a
共有1 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 3
    0
      src/freedombone-app-vpn

+ 3
- 0
src/freedombone-app-vpn ファイルの表示

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