Bläddra i källkod

Add some restarts

Bob Mottram 7 år sedan
förälder
incheckning
db05c3364f
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5
    0
      src/freedombone-utils-i2p

+ 5
- 0
src/freedombone-utils-i2p Visa fil

59
 
59
 
60
     apt-get update
60
     apt-get update
61
     apt-get -yq install i2p i2p-keyring
61
     apt-get -yq install i2p i2p-keyring
62
+    systemctl restart i2p
62
 }
63
 }
63
 
64
 
64
 function remove_i2p {
65
 function remove_i2p {
85
 
86
 
86
 function i2p_enable_sam {
87
 function i2p_enable_sam {
87
     if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
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
         echo $'File not found /var/lib/i2p/i2p-config/clients.config'
93
         echo $'File not found /var/lib/i2p/i2p-config/clients.config'
89
         exit 483648364834
94
         exit 483648364834
90
     fi
95
     fi