From 7e015751b9b051768dc6acdad58042747ec1ac42 Mon Sep 17 00:00:00 2001 From: gauthiier Date: Thu, 6 Dec 2018 10:56:04 +0100 Subject: [PATCH] cert.py debug --- certbot-apache2/cert.py | 14 +++++++------- vhost-apache2/vhost.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/certbot-apache2/cert.py b/certbot-apache2/cert.py index e4ed78e..8914461 100644 --- a/certbot-apache2/cert.py +++ b/certbot-apache2/cert.py @@ -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) diff --git a/vhost-apache2/vhost.py b/vhost-apache2/vhost.py index 068f02f..4f90483 100755 --- a/vhost-apache2/vhost.py +++ b/vhost-apache2/vhost.py @@ -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: