make sure backup dir exists
authorRalf Jung <post@ralfj.de>
Mon, 1 May 2023 17:17:46 +0000 (19:17 +0200)
committerRalf Jung <post@ralfj.de>
Mon, 1 May 2023 17:17:46 +0000 (19:17 +0200)
letsencrypt-tiny

index b0b98944b2ca88297564948662eca2f3f71177ba..2e8ea149061986de112c5d0ff7bed2c7f9c690e9 100755 (executable)
@@ -21,6 +21,7 @@ def keyfile(name):
 
 def make_backup(fname):
     if os.path.exists(fname):
 
 def make_backup(fname):
     if os.path.exists(fname):
+        os.makedirs(config['dirs']['backups'])
         backupname = os.path.basename(fname) + "." + str(datetime.date.today())
         i = 0
         while True:
         backupname = os.path.basename(fname) + "." + str(datetime.date.today())
         i = 0
         while True: