mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:50 +02:00
Fixes #902
Fix for #902 If the directory does't exist, it will create the directory before proceeding.
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user