diff options
author | Linus Nordberg <linus@nordu.net> | 2015-06-05 13:45:03 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-06-05 13:45:03 +0200 |
commit | 80d4c8b44cf8e12b89d63bbd4e468ed4b535655b (patch) | |
tree | c8ddcde976244ca549c31bce1f74d61df5996156 | |
parent | a64b48376698841f62eb75645cf76e9633bf6dd0 (diff) |
Actually work.
-rwxr-xr-x | mklog.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -116,10 +116,8 @@ def make_authkeys(nodenames): os.mkdir(wdir) os.chdir(wdir) - priv_dst = '../nodes/%s/%s-private.pem' % (nodename, nodename) - pub_dst = '../nodes/%s/publickeys' % nodename - for nodename in nodenames: + priv_dst = '../nodes/%s/%s-private.pem' % (nodename, nodename) if os.access(priv_dst, os.R_OK): continue if not make_eckey(nodename): @@ -128,6 +126,7 @@ def make_authkeys(nodenames): os.chmod(priv_dst, stat.S_IWUSR) shutil.move('%s-private.pem' % nodename, priv_dst) for nodename in nodenames: + pub_dst = '../nodes/%s/publickeys' % nodename shutil.rmtree(pub_dst, ignore_errors=True) shutil.copytree('.', pub_dst) |