ソースを参照

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
     # This might not be true in future
68
     # This might not be true in future
69
     sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 1|g' /etc/sysctl.conf
69
     sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 1|g' /etc/sysctl.conf
70
     /sbin/sysctl -p -q
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
 function i2p_enable_sam {
80
 function i2p_enable_sam {