projects
/
lets-encrypt-tiny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1aaa458
)
make sure backup dir exists
author
Ralf Jung
<post@ralfj.de>
Mon, 1 May 2023 17:17:46 +0000
(19:17 +0200)
committer
Ralf Jung
<post@ralfj.de>
Mon, 1 May 2023 17:17:46 +0000
(19:17 +0200)
letsencrypt-tiny
patch
|
blob
|
history
diff --git
a/letsencrypt-tiny
b/letsencrypt-tiny
index b0b98944b2ca88297564948662eca2f3f71177ba..2e8ea149061986de112c5d0ff7bed2c7f9c690e9 100755
(executable)
--- a/
letsencrypt-tiny
+++ b/
letsencrypt-tiny
@@
-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: