From ad8da5b9c75ff3dcc5bdebcba7a00258e9cf662f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:00:41 +0100 Subject: [PATCH] Update 93-openvpn.sh --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index fdeec26c6..25dcb7b2a 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -37,6 +37,7 @@ if bashio::config.true 'openvpn_enabled'; then ((line_number++)) # Extract the second argument file_name="$(echo "$line" | awk -F' ' '{print $2}')" + # If second argument is null or - if [ -z "$file_name" ] || [[ "$file_name" == -* ]]; then # Comment out the line sed -i "${line_number}s/^/# /" "$file"