Преглед изворни кода

Fix mesh protocol condition

Bob Mottram пре 7 година
родитељ
комит
c4a284abb1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      src/freedombone-mesh-batman

+ 1
- 1
src/freedombone-mesh-batman Прегледај датотеку

@@ -238,7 +238,7 @@ function start {
238 238
 
239 239
     systemctl restart nginx
240 240
 
241
-    if [[ "$MESH_DEFAULT_PROTOCOL" == 'bmx6' ]]; then
241
+    if grep -q "bmx6" $MESH_DEFAULT_PROTOCOL; then
242 242
         systemctl restart bmx6
243 243
     else
244 244
         systemctl restart bmx7