Commit 798ad6b8 authored by Félix Sipma's avatar Félix Sipma
Browse files

typo: oubli d'un shell=True

parent 5cb13e29
......@@ -52,7 +52,7 @@ subprocess.run("ssh " + SSH_OPT + " admin@" + IP_ROUTEROS + " \"/system license
byteskey = subprocess.check_output("ssh " + SSH_OPT + " admin@" + IP_ROUTEROS + " \"/system license print\" | grep \"software-id:\" | sed -r 's/.*software-id: ([[:alnum:]-]+).*/\\1/'.key", shell=True)
# ^ TODO: verify if "byteskey" right is the right output
key = byteskey.decode('utf-8') + ".key"
subprocess.run("scp " + SSH_OPT + " admin@" + IP_ROUTEROS + ":/" + key + "./" + key)
subprocess.run("scp " + SSH_OPT + " admin@" + IP_ROUTEROS + ":/" + key + "./" + key, shell=True)
print(BLUE + "Configuration du routeur pour le flash" + NC)
subprocess.run("ssh " + SSH_OPT + " admin@" + IP_ROUTEROS + " \"/system routerboard settings set boot-device=try-ethernet-once-then-nand\"", shell=True)
......
Supports Markdown
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