From: Mike Frysinger Date: Sun, 17 Jul 2016 06:03:11 +0000 (-0400) Subject: le-renew: handle single domain confs X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=881cee1eef549c096006e2e3bc02ecfcd1195618;p=home.git le-renew: handle single domain confs --- 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'))