Update 30-keygen

This commit is contained in:
Alexandre
2021-12-02 23:20:56 +01:00
committed by GitHub
parent 62f44e27cd
commit 1d627d8cb7

View File

@@ -8,8 +8,8 @@ if bashio::config.true 'use_own_certs'; then
#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::addon.stop
[ ! -f /ssl/$KEYFILE ] && bashio::log.fatal "... use_own_certs is true but certificate /ssl/$KEYFILE not found" && bashio::addon.stop
[ ! -f /ssl/$CERTFILE ] && bashio::log.fatal "... use_own_certs is true but certificate /ssl/$CERTFILE not found" && bashio::exit.nok
[ ! -f /ssl/$KEYFILE ] && bashio::log.fatal "... use_own_certs is true but certificate /ssl/$KEYFILE not found" && bashio::exit.nok
else
bashio::log.info "No ssl certificates set. Auto generating ones..."