Selaa lähdekoodia

Run scuttlebot on mesh peers if git-ssb is enabled

Bob Mottram 7 vuotta sitten
vanhempi
commit
5ed6ef6483
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5
    1
      src/freedombone-mesh-batman

+ 5
- 1
src/freedombone-mesh-batman Näytä tiedosto

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