Update 93-openvpn.sh

This commit is contained in:
Alexandre
2022-05-03 13:47:31 +02:00
committed by GitHub
parent 6113974824
commit 3f9f2e3ea3

View File

@@ -94,11 +94,10 @@ if bashio::config.true 'openvpn_enabled'; then
fi
# Modify ovpn config
sed -i 's|exec /usr/sbin/openvpn |exec /usr/sbin/openvpn --route-nopull |g' /etc/services.d/qbittorrent/run
#if ! grep -q route-nopull /etc/openvpn/config.ovpn; then
# echo "... adding route-nopull to your config.ovpn"
# echo "route-nopull" >>/etc/openvpn/config.ovpn
#fi
if ! grep -q route-nopull /etc/openvpn/config.ovpn; then
echo "... adding route-nopull to your config.ovpn"
sed -i "1a route-nopull" /etc/openvpn/config.ovpn
fi
else