Look for file

https://github.com/alexbelgium/hassio-addons/issues/978
This commit is contained in:
Alexandre
2023-09-04 16:43:57 +02:00
committed by GitHub
parent 47265a3e24
commit 14f2338782

View File

@@ -88,7 +88,7 @@ if bashio::config.true "OPENVPN_CUSTOM_PROVIDER"; then
bashio::log.info "Custom openvpn provider selected"
# Check that ovpn file exists
if [ ! -f "$OVPNLOCATION" ] || [ ! -f "$OVPNLOCATION/$OVPNCONFIG" ]; then
if [ ! -f "$OVPNLOCATION" ]; then
bashio::log.fatal "Ovpn file not found at location provided : $OVPNLOCATION"
exit 1
fi