Browse Source

Remove and reinstall i2p

Bob Mottram 7 years ago
parent
commit
70b42d8802
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/freedombone-utils-i2p

+ 5
- 2
src/freedombone-utils-i2p View File

86
 
86
 
87
 function i2p_enable_sam {
87
 function i2p_enable_sam {
88
     if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
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
     fi
94
     fi
92
     if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
95
     if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
93
         echo $'File not found /var/lib/i2p/i2p-config/clients.config'
96
         echo $'File not found /var/lib/i2p/i2p-config/clients.config'