From: Adolf Belka Date: Mon, 8 Sep 2025 12:59:37 +0000 (+0200) Subject: update.sh: Update collectd.vpn to the new RW log file name X-Git-Tag: v2.29-core197~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=211d81f8e20ab9c41b99933239f402e0afafcc0d;p=ipfire-2.x.git update.sh: Update collectd.vpn to the new RW log file name Signed-off-by: Adolf Belka Signed-off-by: Michael Tremer --- 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