Update 93-openvpn.sh

This commit is contained in:
Alexandre
2023-12-30 16:48:59 +01:00
committed by GitHub
parent 66ade62448
commit 4fcc8cd818

View File

@@ -94,7 +94,7 @@ if bashio::config.true 'openvpn_enabled'; then
fi
# If openvpn_config not set, but folder is not empty
elif [ ! "$(ls -A /config/openvpn/*.ovpn)" ]; then
elif ls /config/openvpn/*.ovpn > /dev/null 2>&1; then
# Look for openvpn files
# Wildcard search for openvpn config files and store results in array
mapfile -t VPN_CONFIGS < <( find /config/openvpn -maxdepth 1 -name "*.ovpn" -print )