From: Adolf Belka Date: Sat, 28 Jun 2025 13:48:51 +0000 (+0200) Subject: backup.pl: Stop restore of the empty pakfire.log file X-Git-Tag: v2.29-core196~7^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bc224d7203c014f637369bfb43850679c3cf571;p=ipfire-2.x.git 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 --- 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 }