From 53d17049bb85096d7f640ca1c8960f3dc6362fc9 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 9 Jul 2023 16:49:19 +0200 Subject: [PATCH] of course it is okay for that dir to already exist... --- letsencrypt-tiny | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letsencrypt-tiny b/letsencrypt-tiny index 2e8ea14..eef52e7 100755 --- a/letsencrypt-tiny +++ b/letsencrypt-tiny @@ -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: -- 2.30.2