From: Ralf Jung Date: Sun, 9 Jul 2023 14:49:19 +0000 (+0200) Subject: of course it is okay for that dir to already exist... X-Git-Url: https://git.ralfj.de/lets-encrypt-tiny.git/commitdiff_plain of course it is okay for that dir to already exist... --- 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: