|
@@ -86,13 +86,14 @@ function remove_i2p {
|
86
|
86
|
if [ -d /var/log/i2p ]; then
|
87
|
87
|
rm /var/log/i2p
|
88
|
88
|
fi
|
|
89
|
+ rm -rf /tmp/i2p*
|
89
|
90
|
}
|
90
|
91
|
|
91
|
92
|
function i2p_enable_sam {
|
92
|
93
|
if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
|
93
|
94
|
service i2p stop
|
94
|
95
|
|
95
|
|
- apt-get -yq remove i2p --purge
|
|
96
|
+ apt-get -yq remove i2p i2p-keyring --purge
|
96
|
97
|
apt-get -yq remove i2p-router --purge
|
97
|
98
|
if [ -d /var/lib/i2p ]; then
|
98
|
99
|
rm -rf /var/lib/i2p
|
|
@@ -106,8 +107,10 @@ function i2p_enable_sam {
|
106
|
107
|
if [ -d /var/log/i2p ]; then
|
107
|
108
|
rm /var/log/i2p
|
108
|
109
|
fi
|
|
110
|
+ rm -rf /tmp/i2p*
|
109
|
111
|
apt-get -yq install i2p i2p-keyring
|
110
|
|
- apt-get -yq install i2p-router
|
|
112
|
+ apt-get -yq install i2p-router --reinstall
|
|
113
|
+ systemctl restart i2p
|
111
|
114
|
sleep 10
|
112
|
115
|
fi
|
113
|
116
|
if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
|