瀏覽代碼

Remove directories if they exist

Bob Mottram 7 年之前
父節點
當前提交
637647e207
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/freedombone-utils-i2p

+ 7
- 0
src/freedombone-utils-i2p 查看文件

@@ -68,6 +68,13 @@ function remove_i2p {
68 68
     # This might not be true in future
69 69
     sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 1|g' /etc/sysctl.conf
70 70
     /sbin/sysctl -p -q
71
+
72
+    if [ -d /var/lib/i2p ]; then
73
+        rm -rf /var/lib/i2p
74
+    fi
75
+    if [ -d /etc/i2p ]; then
76
+        rm -rf /etc/i2p
77
+    fi
71 78
 }
72 79
 
73 80
 function i2p_enable_sam {