From b90ad405bc6a261ded7a5b4c4bc90984bd006bed Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 24 Dec 2023 00:04:15 +0100 Subject: [PATCH] Update 93-openvpn.sh --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index ec87ea33c..309c58b65 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -38,11 +38,11 @@ do # Check if the txt file exists if [ ! -f "$file_name" ]; then # Check if the txt file exists in the /config/openvpn/ directory - if [ -f "/config/openvpn/$file_name" ]; then + 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/" "$file" + sed -i "s/$file_name/\/config\/openvpn\/${file_name##*/}/g" "$file" # Print a success message - bashio::log.warning "Appended /config/openvpn/ to $file_name in $file" + bashio::log.warning "Appended /config/openvpn/ to ${file_name##*/} in $file" else # Print an error message bashio::log.warning "$file_name is referenced in your ovpn file but does not exist, and can't be found either in the /config/openvpn/ directory"