diff --git a/src/freedombone-utils-i2p b/src/freedombone-utils-i2p index d3ef3163..e04bb49d 100755 --- a/src/freedombone-utils-i2p +++ b/src/freedombone-utils-i2p @@ -88,9 +88,18 @@ function i2p_enable_sam { if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then apt-get -yq remove i2p --purge apt-get -yq remove i2p-router --purge - apt-get -yq install i2p + if [ -d /var/lib/i2p ]; then + rm -rf /var/lib/i2p + fi + if [ -d /etc/i2p ]; then + rm -rf /etc/i2p + fi + if [ -d /usr/share/i2p ]; then + rm -rf /usr/share/i2p + fi + apt-get -yq install i2p i2p-keyring apt-get -yq install i2p-router - sleep 2 + sleep 10 fi if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then echo $'File not found /var/lib/i2p/i2p-config/clients.config'