From f96c34546e91be25429a8a1c2f99710a9539f402 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Sat, 10 Oct 2015 18:33:44 -0400 Subject: [PATCH] Fixes #902 Fix for #902 If the directory does't exist, it will create the directory before proceeding. --- letsencrypt/renewer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/letsencrypt/renewer.py b/letsencrypt/renewer.py index 1c9cddc95..953b372f5 100644 --- a/letsencrypt/renewer.py +++ b/letsencrypt/renewer.py @@ -146,6 +146,10 @@ def main(config=None, args=sys.argv[1:]): # take precedence over this one. config.merge(configobj.ConfigObj(cli_config.renewer_config_file)) + # If the folder does not exist we need to create it. + if not os.path.isdir(cli_config.renewal_configs_dir): + os.makedirs(cli_config.renewal_configs_dir) + for i in os.listdir(cli_config.renewal_configs_dir): print "Processing", i if not i.endswith(".conf"):