From 211d81f8e20ab9c41b99933239f402e0afafcc0d Mon Sep 17 00:00:00 2001 From: Adolf Belka Date: Mon, 8 Sep 2025 14:59:37 +0200 Subject: [PATCH] update.sh: Update collectd.vpn to the new RW log file name Signed-off-by: Adolf Belka Signed-off-by: Michael Tremer --- config/rootfiles/core/197/update.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.3