From 9cb488324076373506ab7b712c2f9bccaf4b659e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 4 Feb 2026 08:56:17 +0100 Subject: [PATCH 1/2] Add execute permission to vpn script --- qbittorrent/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/qbittorrent/Dockerfile b/qbittorrent/Dockerfile index 8f58be02c..6f7fc4b13 100644 --- a/qbittorrent/Dockerfile +++ b/qbittorrent/Dockerfile @@ -92,6 +92,7 @@ RUN \ # Copy local files COPY rootfs/ / RUN find /etc -type f \( -name "*.sh" -o -name "run" -o -name "finish" \) -exec chmod +x {} + +RUN chmod +x /usr/local/sbin/vpn # Uses /bin for compatibility purposes # hadolint ignore=DL4005 From b04ac63ce74fe1563f029fde5ffecf7f716af046 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 4 Feb 2026 09:19:26 +0100 Subject: [PATCH 2/2] Check for openvpn_config option to avoid assigning string "null" to variable --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index 0d0839082..b82afb701 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -42,8 +42,10 @@ fi echo -e "${openvpn_username}\n${openvpn_password}" > "${OPENVPN_STATE_DIR}/credentials.conf" chmod 600 "${OPENVPN_STATE_DIR}/credentials.conf" -openvpn_config="$(bashio::config 'openvpn_config')" -openvpn_config="${openvpn_config##*/}" +if bashio::config.has_value "openvpn_config"; then + openvpn_config="$(bashio::config 'openvpn_config')" + openvpn_config="${openvpn_config##*/}" +fi if [[ -z "${openvpn_config}" ]]; then bashio::log.info 'openvpn_config option left empty. Attempting automatic selection.' mapfile -t configs < <(find /config/openvpn -maxdepth 1 \( -type f -name '*.conf' -o -name '*.ovpn' \) -print)