🔨 Allow log_level to be used with API

This commit is contained in:
Timmo 2019-01-13 18:07:47 +00:00 committed by GitHub
parent 80dc04317c
commit 2b7207084e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ hass.log.info "Run API.."
cd /opt/api \
|| hass.die "Could not change into API directory"
LOG_LEVEL=$(hass.config.get 'log_level')
DB_PATH=/config/home-panel.db
CONFIG_PATH=/config/$(hass.config.get 'config_file')
@ -19,6 +20,7 @@ if hass.config.true 'ssl'; then
SSL_PATH_KEY="/ssl/$(hass.config.get 'keyfile')"
fi
export LOG_LEVEL
export DB_PATH
export CONFIG_PATH
export SSL_PATH_CERT