From 881cee1eef549c096006e2e3bc02ecfcd1195618 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 17 Jul 2016 02:03:11 -0400 Subject: [PATCH] le-renew: handle single domain confs --- .bin/le-renew | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bin/le-renew b/.bin/le-renew index 6c2354c..acc9567 100755 --- a/.bin/le-renew +++ b/.bin/le-renew @@ -107,7 +107,12 @@ def process_domain(domain, dry_run=False): logging.info('%s: checking', domain) conf = load_conf(domain) - webroot_path = conf.get('[webroot_map', domain) + try: + webroot_path = conf.get('[webroot_map', domain) + except configparser.NoOptionError: + webroot_path = conf.get('renewalparams', 'webroot_path') + # The conf writing has a bug here where it appends a comma. + webroot_path = webroot_path.rstrip(',') cert_path = os.path.realpath(conf.get('globals', 'cert')) -- 2.39.5