]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
update.sh: Update collectd.vpn to the new RW log file name
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 8 Sep 2025 12:59:37 +0000 (14:59 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Sep 2025 10:39:39 +0000 (10:39 +0000)
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/197/update.sh

index 0fd5cc6f038e8795353f914a5cb7973984594cf2..0c5e226eb646e61b679dcc0e94da6573a3271042 100644 (file)
@@ -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