mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Have a subdirectory for cert backups, to not flood /etc/yunohost/certs/
This commit is contained in:
parent
e1539297a5
commit
80ebaa6895
1 changed files with 1 additions and 1 deletions
|
@ -657,7 +657,7 @@ def _backup_current_cert(domain):
|
|||
cert_folder_domain = os.path.join(CERT_FOLDER, domain)
|
||||
|
||||
date_tag = datetime.now().strftime("%Y%m%d.%H%M%S")
|
||||
backup_folder = "%s-backup-%s" % (cert_folder_domain, date_tag)
|
||||
backup_folder = "%s-backups/%s" % (cert_folder_domain, date_tag)
|
||||
|
||||
shutil.copytree(cert_folder_domain, backup_folder)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue