From efe4170c50ff1290e9c443a4f9736ce67825c6aa Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 23 Apr 2021 21:18:51 +0200 Subject: [PATCH] Update 93-openvpn.sh --- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 5 +++-- 1 file changed, 3 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 4122ca185..c22c368cf 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -6,10 +6,11 @@ declare openvpn_username declare openvpn_password if bashio::config.true 'openvpn_enabled'; then - + + bashio::log.info "Configuring openvpn" openvpn_config=$(bashio::config 'openvpn_config') - cp "/config/openvpn/${openvpn_config}.ovpn" /etc/openvpn/config.ovpn + cp "/config/openvpn/${openvpn_config}.ovpn" /etc/openvpn/config.ovpn || bashio::log.error "openvpn config file not found in /config/openvpn/${openvpn_config}.ovpn" openvpn_username=$(bashio::config 'openvpn_username') echo "${openvpn_username}" > /etc/openvpn/credentials