mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix backup_delete when compress_tar_archives is True
This commit is contained in:
parent
35850f75cd
commit
16dba79a39
1 changed files with 1 additions and 1 deletions
|
@ -2592,7 +2592,7 @@ def backup_delete(name):
|
|||
hook_callback("pre_backup_delete", args=[name])
|
||||
|
||||
archive_file = "%s/%s.tar" % (ARCHIVES_PATH, name)
|
||||
if os.path.exists(archive_file + ".gz"):
|
||||
if not os.path.exists(archive_file) and os.path.exists(archive_file + ".gz"):
|
||||
archive_file += ".gz"
|
||||
info_file = "%s/%s.info.json" % (ARCHIVES_PATH, name)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue