From ca9f1b8a66387774aceab9cd39057ecbf967f8bb Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 30 Dec 2023 19:51:25 +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 93d853d99..36cd4122c 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -134,7 +134,7 @@ if bashio::config.true 'openvpn_enabled'; then # Add credentials file file_name="$(sed -n "/^auth-user-pass/p" /config/openvpn/"$openvpn_config" | awk -F' ' '{print $2}')" file_name="${file_name:-null}" - if grep -q auth-user-pass /config/openvpn/"$openvpn_config"; then + if grep -q ^auth-user-pass /config/openvpn/"$openvpn_config" ; then # Credentials specified are they custom ? if [[ "$file_name" != *"/etc/openvpn/credentials"* ]]; then if [ -f "$file_name" ]; then