diff options
Diffstat (limited to 'mklog.py')
-rwxr-xr-x | mklog.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -143,6 +143,11 @@ def create_destdirs(logname, nodenames): if not os.access(d, os.F_OK): os.makedirs(d) +def copy_cacert(nodenames): + ca_cert = './httpscerts/demoCA/cacert.pem' + for nodename in nodenames: + shutil.copy(ca_cert, './nodes/%s/cacert.pem' % nodename) + def main(): parser = argparse.ArgumentParser(description="") parser.add_argument('config', help="System configuration") @@ -162,5 +167,6 @@ def main(): copy_logkey(logname, nodenames + mergenodenames) make_certs(logname, nodenames) make_authkeys(nodenames + mergenodenames) + copy_cacert(mergenodenames) main() |