From 70b42d880229bd33fd62bfafc3fe327ad440ba37 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 14 Feb 2018 14:18:25 +0000 Subject: [PATCH] Remove and reinstall i2p --- src/freedombone-utils-i2p | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/freedombone-utils-i2p b/src/freedombone-utils-i2p index f75ced03..d3ef3163 100755 --- a/src/freedombone-utils-i2p +++ b/src/freedombone-utils-i2p @@ -86,8 +86,11 @@ function remove_i2p { function i2p_enable_sam { if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then - systemctl restart i2p - sleep 10 + apt-get -yq remove i2p --purge + apt-get -yq remove i2p-router --purge + apt-get -yq install i2p + apt-get -yq install i2p-router + sleep 2 fi if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then echo $'File not found /var/lib/i2p/i2p-config/clients.config'