Correct random config

https://github.com/alexbelgium/hassio-addons/issues/1150
This commit is contained in:
Alexandre
2023-12-30 16:44:06 +01:00
committed by GitHub
parent f7d879cfc0
commit 66ade62448

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 2>/dev/null)" ]; then
elif [ ! "$(ls -A /config/openvpn/*.ovpn)" ]; 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 )