From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, master, updated. 0088442c56e8a623c25d1a93940eabd29e4d430b
Date: Sun, 14 Sep 2025 10:39:46 +0000 (UTC) [thread overview]
Message-ID: <4cPl6C0TR4z2xcB@people01.haj.ipfire.org> (raw)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, master has been updated
via 0088442c56e8a623c25d1a93940eabd29e4d430b (commit)
via 211d81f8e20ab9c41b99933239f402e0afafcc0d (commit)
from 54944268e729c8939a49a3e9536f5ad85ce9c2b8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0088442c56e8a623c25d1a93940eabd29e4d430b
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Mon Sep 8 14:59:38 2025 +0200
backup.pl: Update the RW entry in collectd.vpn if restoring old backup
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
commit 211d81f8e20ab9c41b99933239f402e0afafcc0d
Author: Adolf Belka <adolf.belka@ipfire.org>
Date: Mon Sep 8 14:59:37 2025 +0200
update.sh: Update collectd.vpn to the new RW log file name
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
config/backup/backup.pl | 6 +++++-
config/rootfiles/core/197/update.sh | 5 +++++
2 files changed, 10 insertions(+), 1 deletion(-)
Difference in files:
diff --git a/config/backup/backup.pl b/config/backup/backup.pl
index e79f510c6..8988427ea 100644
--- a/config/backup/backup.pl
+++ b/config/backup/backup.pl
@@ -349,8 +349,12 @@ restore_backup() {
rm /var/log/pakfire.log
fi
- # Update the OpenVPN configuration and restart the openvpn daemons
+ # Update the OpenVPN configuration, update the RW log entry in collectd.vpn
+ # if it is the old name and restart the openvpn daemons
sudo -u nobody /srv/web/ipfire/cgi-bin/ovpnmain.cgi
+ if grep -q "/var/run/ovpnserver.log" /var/ipfire/ovpn/collectd.vpn; then
+ sed -i 's|"/var/run/ovpnserver.log"|"/var/run/openvpn-rw.log"|' /var/ipfire/ovpn/collectd.vpn
+ fi
/etc/init.d/openvpn-n2n restart
/etc/init.d/openvpn-rw restart
diff --git a/config/rootfiles/core/197/update.sh b/config/rootfiles/core/197/update.sh
index 0fd5cc6f0..0c5e226eb 100644
--- a/config/rootfiles/core/197/update.sh
+++ b/config/rootfiles/core/197/update.sh
@@ -125,6 +125,11 @@ ldconfig
# Update the OpenVPN configuration
sudo -u nobody /srv/web/ipfire/cgi-bin/ovpnmain.cgi
+# Replace the OpenVPN RW log name in collectd.vpn
+if grep -q "/var/run/ovpnserver.log" /var/ipfire/ovpn/collectd.vpn; then
+ sed -i 's|"/var/run/ovpnserver.log"|"/var/run/openvpn-rw.log"|' /var/ipfire/ovpn/collectd.vpn
+fi
+
# Apply SSH configuration
/usr/local/bin/sshctrl
hooks/post-receive
--
IPFire 2.x development tree
reply other threads:[~2025-09-14 10:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4cPl6C0TR4z2xcB@people01.haj.ipfire.org \
--to=git@ipfire.org \
--cc=ipfire-scm@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