From 81e867c96620ac5f000f68afa6b4cc36066f1a78 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 23 Jul 2025 08:58:43 +0000 Subject: [PATCH] core197: Escape slashes in path in sed command I think I have been too fast... Signed-off-by: Michael Tremer --- config/backup/backup.pl | 2 +- config/rootfiles/core/197/update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/backup/backup.pl b/config/backup/backup.pl index a227be841..ed7a68455 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -354,7 +354,7 @@ restore_backup() { -e "s/^writepid .*/writepid \/var\/run\/openvpn-rw.pid/" \ -e "/ncp-disable/d" \ -e "s/^cipher (.*)/data-ciphers-fallback \1/" \ - -e "s/^status .*/status /var/run/openvpn-rw.log/" \ + -e "s/^status .*/status \/var\/run\/openvpn-rw.log/" \ -i /var/ipfire/ovpn/server.conf # Change to the subnet topology diff --git a/config/rootfiles/core/197/update.sh b/config/rootfiles/core/197/update.sh index 936e692a9..23f42e636 100644 --- a/config/rootfiles/core/197/update.sh +++ b/config/rootfiles/core/197/update.sh @@ -125,7 +125,7 @@ sed -r \ -e "s/^writepid .*/writepid \/var\/run\/openvpn-rw.pid/" \ -e "/ncp-disable/d" \ -e "s/^cipher (.*)/data-ciphers-fallback \1/" \ - -e "s/^status .*/status /var/run/openvpn-rw.log/" \ + -e "s/^status .*/status \/var\/run\/openvpn-rw.log/" \ -i /var/ipfire/ovpn/server.conf # Change to the subnet topology -- 2.47.3