of course it is okay for that dir to already exist...
[lets-encrypt-tiny.git] / letsencrypt-tiny
index 2e8ea149061986de112c5d0ff7bed2c7f9c690e9..eef52e7548cc113223c005e073ff2e9b2bbfbdeb 100755 (executable)
@@ -21,7 +21,7 @@ def keyfile(name):
 
 def make_backup(fname):
     if os.path.exists(fname):
-        os.makedirs(config['dirs']['backups'])
+        os.makedirs(config['dirs']['backups'], exist_ok = True)
         backupname = os.path.basename(fname) + "." + str(datetime.date.today())
         i = 0
         while True: