cert.py debug

This commit is contained in:
gauthiier 2018-12-06 10:56:04 +01:00
parent d27f16983a
commit 7e015751b9
2 changed files with 8 additions and 8 deletions

View File

@ -28,15 +28,15 @@ def cert_remove(domain):
if __name__ == "__main__":
p = argparse.ArgumentParser(description='cerbot helper')
p.add_argument('domain', metavar="domain", help="vhost domain(s)", nargs="+")
g = p.add_mutually_exclusive_group()
g.add_argument('-a', '--add', action='store_true', help="adds cert for given domain(s)")
g.add_argument('-r', '--remove', action='store_true', help="removes cert for given domain(s)")
p = argparse.ArgumentParser(description='cerbot helper')
p.add_argument('domain', metavar="domain", help="vhost domain(s)", nargs="+")
g = p.add_mutually_exclusive_group()
g.add_argument('-a', '--add', action='store_true', help="adds cert for given domain(s)")
g.add_argument('-r', '--remove', action='store_true', help="removes cert for given domain(s)")
args = p.parse_args()
args = p.parse_args()
sanity_check_system()
sanity_check_system()
if args.add:
cert_add(args.domain)

View File

@ -92,7 +92,7 @@ def vhost_add(domain):
vhost_file_fp.write(vhost)
# debug: this file might not be here...........
shutil.copyfile('c.txt', os.path.join(www, 'c.txt'))
shutil.copyfile('c.txt', os.path.join(www, 'c.txt'x))
# bla = os.path.join(www, 'itworks.txt')
# with open(bla, 'w+') as bla_fp: