Browse Source

Add some restarts

Bob Mottram 7 years ago
parent
commit
db05c3364f
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/freedombone-utils-i2p

+ 5
- 0
src/freedombone-utils-i2p View File

@@ -59,6 +59,7 @@ function install_i2p {
59 59
 
60 60
     apt-get update
61 61
     apt-get -yq install i2p i2p-keyring
62
+    systemctl restart i2p
62 63
 }
63 64
 
64 65
 function remove_i2p {
@@ -85,6 +86,10 @@ function remove_i2p {
85 86
 
86 87
 function i2p_enable_sam {
87 88
     if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
89
+        systemctl restart i2p
90
+        sleep 10
91
+    fi
92
+    if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
88 93
         echo $'File not found /var/lib/i2p/i2p-config/clients.config'
89 94
         exit 483648364834
90 95
     fi