Remove and reinstall i2p

This commit is contained in:
Bob Mottram 2018-02-14 14:18:25 +00:00
parent 79448aa603
commit 70b42d8802
1 changed files with 5 additions and 2 deletions

View File

@ -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'