From 7ed89abc52fa7c7396a527b8d8f728d4a3200337 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 30 Dec 2023 20:11:14 +0100 Subject: [PATCH] Update 93-openvpn.sh --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 3 ++- 1 file changed, 2 insertions(+), 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 191e46d06..f2ecf1d39 100755 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -71,6 +71,7 @@ if bashio::config.true 'openvpn_enabled'; then # Correct paths sed -i "s=/etc/openvpn=/config/openvpn=g" "$file" + sed -i "s=/config/openvpn/credentials=/etc/openvpn/credentials=g" "$file" } @@ -148,7 +149,7 @@ if bashio::config.true 'openvpn_enabled'; then sed -i '/^auth-user-pass/s/^/#/' /config/openvpn/"$openvpn_config" # No credentials specified, using addons username and password echo "# Please do not remove the line below, it allows using the addon username and password" >> /config/openvpn/"$openvpn_config" - echo "auth-user-pass /etc/openvpn/credentials" >> /config/openvpn/"$openvpn_config" + echo "auth-user-pass /etc/openvpn/credentials" >> /etc/openvpn/"$openvpn_config" fi else # Standardize just to be sure