From db05c3364f946ab3e2db51347996ac503bc82a15 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 12 Feb 2018 14:33:18 +0000 Subject: [PATCH] Add some restarts --- src/freedombone-utils-i2p | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-utils-i2p b/src/freedombone-utils-i2p index 4dfbac7a..f75ced03 100755 --- a/src/freedombone-utils-i2p +++ b/src/freedombone-utils-i2p @@ -59,6 +59,7 @@ function install_i2p { apt-get update apt-get -yq install i2p i2p-keyring + systemctl restart i2p } function remove_i2p { @@ -84,6 +85,10 @@ function remove_i2p { } function i2p_enable_sam { + if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then + systemctl restart i2p + sleep 10 + fi if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then echo $'File not found /var/lib/i2p/i2p-config/clients.config' exit 483648364834