瀏覽代碼

Add some restarts

Bob Mottram 7 年之前
父節點
當前提交
db05c3364f
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. 5
    0
      src/freedombone-utils-i2p

+ 5
- 0
src/freedombone-utils-i2p 查看文件

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