diff options
Diffstat (limited to 'mklog.py')
-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) |