updated release to pull password from a conf file.
Showing
1 changed file
with
2 additions
and
4 deletions
... | @@ -21,10 +21,8 @@ for f in os.listdir('rooms'): | ... | @@ -21,10 +21,8 @@ for f in os.listdir('rooms'): |
21 | for f in os.listdir('inventory'): | 21 | for f in os.listdir('inventory'): |
22 | files.append('inventory/' + f) | 22 | files.append('inventory/' + f) |
23 | 23 | ||
24 | with open(filename, 'r', encoding='utf-8') as f: | 24 | with open('releasepw.conf', 'r', encoding='utf-8') as f: |
25 | pw = f.read() | 25 | password = f.read() |
26 | with open('releasepw.conf', 'r') | ||
27 | password = sys.argv[1] | ||
28 | 26 | ||
29 | for file in files: | 27 | for file in files: |
30 | os.system("python webrepl\webrepl_cli.py -p {} {} 192.168.1.126:/{}".format(password, file, file)) | 28 | os.system("python webrepl\webrepl_cli.py -p {} {} 192.168.1.126:/{}".format(password, file, file)) | ... | ... |
-
Please register or sign in to post a comment