diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index 91fcc6604..9e961ae31 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -109,7 +109,9 @@ else ################## # Ensure no redirection by removing the direction tag - sed -i '/Interface/d' "$QBT_CONFIG_FILE" + if [ -f "$QBT_CONFIG_FILE" ]; then + sed -i '/Interface/d' "$QBT_CONFIG_FILE" + fi bashio::log.info "Direct connection without VPN enabled" fi