From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Cc: Adolf Belka <adolf.belka@ipfire.org>
Subject: [PATCH 3/5] backup.pl: Stop restore of the empty pakfire.log file
Date: Sat, 28 Jun 2025 15:48:51 +0200 [thread overview]
Message-ID: <20250628134853.3312365-3-adolf.belka@ipfire.org> (raw)
In-Reply-To: <20250628134853.3312365-1-adolf.belka@ipfire.org>
- 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>
---
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
next prev parent reply other threads:[~2025-06-28 13:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-28 13:48 [PATCH 1/5] functions.pl: pakfir cleanup Adolf Belka
2025-06-28 13:48 ` [PATCH 2/5] pakfire: Remove creation of pakfire.log that is never used Adolf Belka
2025-06-28 13:48 ` Adolf Belka [this message]
2025-06-28 13:48 ` [PATCH 4/5] update.sh: Remove pakfire.log file as it is not used Adolf Belka
2025-06-28 13:48 ` [PATCH 5/5] core196: Ship pakfire Adolf Belka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250628134853.3312365-3-adolf.belka@ipfire.org \
--to=adolf.belka@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox