Ver código fonte

Remove and reinstall i2p

Bob Mottram 7 anos atrás
pai
commit
70b42d8802
1 arquivos alterados com 5 adições e 2 exclusões
  1. 5
    2
      src/freedombone-utils-i2p

+ 5
- 2
src/freedombone-utils-i2p Ver arquivo

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