Przeglądaj źródła

Also autoremove

Bob Mottram 7 lat temu
rodzic
commit
1bd4926462
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5
    0
      src/freedombone-utils-i2p

+ 5
- 0
src/freedombone-utils-i2p Wyświetl plik

64
 
64
 
65
 function remove_i2p {
65
 function remove_i2p {
66
     apt-get -yq remove i2p i2p-keyring --purge
66
     apt-get -yq remove i2p i2p-keyring --purge
67
+    apt-get -yq autoremove
67
 
68
 
68
     # It's assumed here that ipv6 is only needed for i2p
69
     # It's assumed here that ipv6 is only needed for i2p
69
     # This might not be true in future
70
     # This might not be true in future
83
 }
84
 }
84
 
85
 
85
 function i2p_enable_sam {
86
 function i2p_enable_sam {
87
+    if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
88
+        echo $'File not found /var/lib/i2p/i2p-config/clients.config'
89
+        exit 483648364834
90
+    fi
86
     sed -i 's|clientApp.1.startOnLoad=.*|clientApp.1.startOnLoad=true|g' /var/lib/i2p/i2p-config/clients.config
91
     sed -i 's|clientApp.1.startOnLoad=.*|clientApp.1.startOnLoad=true|g' /var/lib/i2p/i2p-config/clients.config
87
     systemctl restart i2p
92
     systemctl restart i2p
88
 }
93
 }