瀏覽代碼

Remove and reinstall i2p

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

+ 5
- 2
src/freedombone-utils-i2p 查看文件

@@ -86,8 +86,11 @@ function remove_i2p {
86 86
 
87 87
 function i2p_enable_sam {
88 88
     if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
89
-        systemctl restart i2p
90
-        sleep 10
89
+        apt-get -yq remove i2p --purge
90
+        apt-get -yq remove i2p-router --purge
91
+        apt-get -yq install i2p
92
+        apt-get -yq install i2p-router
93
+        sleep 2
91 94
     fi
92 95
     if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
93 96
         echo $'File not found /var/lib/i2p/i2p-config/clients.config'