ソースを参照

Run scuttlebot on mesh peers if git-ssb is enabled

Bob Mottram 7 年 前
コミット
5ed6ef6483
共有1 個のファイルを変更した5 個の追加1 個の削除を含む
  1. 5
    1
      src/freedombone-mesh-batman

+ 5
- 1
src/freedombone-mesh-batman ファイルの表示

@@ -483,7 +483,11 @@ function start {
483 483
             sed -i "s|\"host\": .*|\"host\": \"$(get_ipv4_wlan)\",|g" /etc/scuttlebot/.ssb/config
484 484
             systemctl restart scuttlebot
485 485
         else
486
-            systemctl stop scuttlebot
486
+            if [ ! -f /etc/nginx/sites-available/git_ssb ]; then
487
+                systemctl stop scuttlebot
488
+            else
489
+                systemctl restart scuttlebot
490
+            fi
487 491
         fi
488 492
     fi
489 493