fix backup_delete when compress_tar_archives is True

This commit is contained in:
Kay0u 2021-11-17 00:44:58 +01:00
parent 35850f75cd
commit 16dba79a39
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -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)