Commit 635c1c78 authored by thiolliere's avatar thiolliere
Browse files

fix sudo echo with redirection Fix #80

parent 23cbd1c4
......@@ -19,7 +19,7 @@ def run(machine, name, timezone, wifi_pwd, kalite, zim_install):
hostname = name.replace("_", "-")
machine.exec_cmd("sudo hostname %s" % hostname)
machine.exec_cmd("sudo echo \"127.0.0.1 %s\" >> /etc/hosts" % hostname)
machine.exec_cmd("sudo sh -c 'echo \"127.0.0.1 %s\" >> /etc/hosts'" % hostname)
package_management = [{"name": x, "status": "present"} for x in zim_install]
device_list = {hostname: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment