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/53d17049bb85096d7f640ca1c8960f3dc6362fc9?ds=inline;hp=da8bb6f65ba6f1316f2517cde9a9f2dc389d18f3 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: