- 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 <[email protected]>
---
 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.50.0


Reply via email to