]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core197: Escape slashes in path in sed command
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Jul 2025 08:58:43 +0000 (08:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Jul 2025 08:58:43 +0000 (08:58 +0000)
I think I have been too fast...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/backup/backup.pl
config/rootfiles/core/197/update.sh

index a227be841cf871e3bd41d601fb9d901e203b59ed..ed7a68455ebd3aae496625917e31e584e96da235 100644 (file)
@@ -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
index 936e692a9f17f010fce24eb46c1a1655f7bfbb32..23f42e6363d916c8bbdaad6d51ad715796d4be98 100644 (file)
@@ -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