bashio::config.require.ssl

This commit is contained in:
Alexandre
2023-04-11 10:26:34 +02:00
parent 8307e87692
commit f93de1fb9a
2 changed files with 5 additions and 5 deletions

View File

@@ -7,6 +7,9 @@ if bashio::config.true 'use_own_certs'; then
CERTFILE=$(bashio::config 'certfile')
KEYFILE=$(bashio::config 'keyfile')
# Validate ssl
bashio::config.require.ssl
#Check if files exist
echo "... checking if referenced files exist"
[ ! -f /ssl/"$CERTFILE" ] && bashio::log.fatal "... use_own_certs is true but certificate /ssl/$CERTFILE not found" && bashio::exit.nok