From 3f091ce00e0ba1a3ceff57c6a3793beaaf392505 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:10:53 +0100 Subject: [PATCH] Update 93-openvpn.sh --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index 25dcb7b2a..19bd7aba9 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -52,7 +52,7 @@ if bashio::config.true 'openvpn_enabled'; then # Check if the txt file exists in the /config/openvpn/ directory if [ -f "/config/openvpn/${file_name##*/}" ]; then # Append /config/openvpn/ in front of the original txt file in the ovpn file - sed -i "s|$file_name|/config/openvpn/${file_name##*/}|g" "$file" + sed -i "${line_number}s|$file_name|/config/openvpn/${file_name##*/}|" "$file" # Print a success message bashio::log.warning "Appended /config/openvpn/ to ${file_name##*/} in $file" else