From 665d9bb048a369d3a476708f95dd80bdd839ff0d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 27 Apr 2021 22:56:17 +0200 Subject: [PATCH] Fix permissions --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index 5ecfa9bf6..b717fd61c 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -21,13 +21,16 @@ if bashio::config.true 'openvpn_enabled'; then echo "${openvpn_username}" > /etc/openvpn/credentials openvpn_password=$(bashio::config 'openvpn_password') echo "${openvpn_password}" >> /etc/openvpn/credentials + sed -i 's/auth-user-pass.*/auth-user-pass \/etc\/openvpn\/credentials/g' /etc/openvpn/config.ovpn + # Permissions chmod 600 /etc/openvpn/credentials chmod 755 /etc/openvpn/up.sh - chmod 755 /etc/openvpn/down.sh - - sed -i 's/auth-user-pass.*/auth-user-pass \/etc\/openvpn\/credentials/g' /etc/openvpn/config.ovpn + chmod 755 /etc/openvpn/down.sh + chmod 755 /etc/openvpn/up-qbittorrent.sh chmod +x /etc/openvpn/up.sh + chmod +x /etc/openvpn/up-qbittorrent.sh + bashio::log.info "openvpn correctly set, qbittorrent will run tunnelled through openvpn" #########################