From: Ralf Jung Date: Mon, 1 May 2023 17:17:46 +0000 (+0200) Subject: make sure backup dir exists X-Git-Url: https://git.ralfj.de/lets-encrypt-tiny.git/commitdiff_plain/da8bb6f65ba6f1316f2517cde9a9f2dc389d18f3?ds=inline;hp=1aaa458b500a616239126d19511e0696b560f24d make sure backup dir exists --- diff --git a/letsencrypt-tiny b/letsencrypt-tiny index b0b9894..2e8ea14 100755 --- a/letsencrypt-tiny +++ b/letsencrypt-tiny @@ -21,6 +21,7 @@ def keyfile(name): 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: