]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
backup.pl: Stop restore of the empty pakfire.log file
authorAdolf Belka <adolf.belka@ipfire.org>
Sat, 28 Jun 2025 13:48:51 +0000 (15:48 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 29 Jun 2025 16:02:19 +0000 (16:02 +0000)
- 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 <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/backup/backup.pl

index 0b8272266a5c8fe1ce6ffa33a98d7fe724df42a0..fe62213e80890575a1605e5888faba62fe1000db 100644 (file)
@@ -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
 }