Fix fatal erroring in addon startup script (#3244)

This commit is contained in:
Jesse Hills 2022-02-21 10:01:00 +13:00
parent e73d47918f
commit dbd4e927d8
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -7,12 +7,12 @@
# Check SSL requirements, if enabled
if bashio::config.true 'ssl'; then
if ! bashio::config.has_value 'certfile'; then
bashio::fatal 'SSL is enabled, but no certfile was specified.'
bashio::log.fatal 'SSL is enabled, but no certfile was specified.'
bashio::exit.nok
fi
if ! bashio::config.has_value 'keyfile'; then
bashio::fatal 'SSL is enabled, but no keyfile was specified'
bashio::log.fatal 'SSL is enabled, but no keyfile was specified'
bashio::exit.nok
fi