From 3bc224d7203c014f637369bfb43850679c3cf571 Mon Sep 17 00:00:00 2001 From: Adolf Belka Date: Sat, 28 Jun 2025 15:48:51 +0200 Subject: [PATCH] backup.pl: Stop restore of the empty pakfire.log file - With the removal of the pakfire.log file from the install, this patch stops the empty file being restored from old backups Signed-off-by: Adolf Belka Signed-off-by: Michael Tremer --- config/backup/backup.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/backup/backup.pl b/config/backup/backup.pl index 0b8272266..fe62213e8 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -345,6 +345,11 @@ restore_backup() { /usr/local/bin/ipsecctrl S fi + if [ -e /var/log/pakfire.log ]; then + rm /var/log/pakfire.log + fi + + return 0 } -- 2.47.3