Skip to content

Commit

Permalink
no licence
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardesd committed Dec 14, 2020
1 parent 761bd27 commit 7dd38a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mesh_routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ def start_hivemq(cont_name, cont_address, bind_ip, master_node, default_route, c
cluster_nodes.append(_new_node)

config_file.write(dest_file)
hive_license = subprocess.check_output("cat {}/confiles/hivemq.lic | base64 -w 0".format(PWD), shell=True)
if my_id == 0:
print("no licence")
hive_license = ""
else:
hive_license = subprocess.check_output("cat {}/confiles/hivemq.lic | base64 -w 0".format(PWD), shell=True)

return net.addDocker(hostname=cont_name, name=cont_name, ip=cont_address,
defaultRoute='via {}'.format(default_route),
ports=[1883], port_bindings={1883: bind_ip},
Expand Down

0 comments on commit 7dd38a5

Please sign in to comment.