Create default mesh protocol file if needed

This commit is contained in:
Bob Mottram 2018-01-15 13:35:53 +00:00
parent c4a284abb1
commit 4d21771969
1 changed files with 4 additions and 0 deletions

View File

@ -238,6 +238,10 @@ function start {
systemctl restart nginx systemctl restart nginx
if [ ! -f $MESH_DEFAULT_PROTOCOL ]; then
echo 'bmx7' > $MESH_DEFAULT_PROTOCOL
fi
if grep -q "bmx6" $MESH_DEFAULT_PROTOCOL; then if grep -q "bmx6" $MESH_DEFAULT_PROTOCOL; then
systemctl restart bmx6 systemctl restart bmx6
else else