Update 01-openvpn.sh

This commit is contained in:
Alexandre
2023-12-11 16:39:28 +01:00
committed by GitHub
parent 22b9de2eac
commit 235399c0dd

View File

@@ -10,7 +10,7 @@ if [[ "$(bashio::config "VPN_ENABLED")" == "yes" ]] && [[ "$(bashio::config "VPN
# If there is a config file, add nopull
if [ -n "$(ls -A /config/openvpn 2>/dev/null)" ]; then
for file in /config/openvpn/*; do
for file in /config/openvpn/*.ovpn; do
if [ -f "$file" ]; then
if ! grep -q route-nopull "$file"; then
echo "... adding route-nopull to $file"