Read in options.json

This commit is contained in:
Edward Brown 2023-08-29 22:15:33 +01:00
parent c17db53053
commit 45d05df6f9
3 changed files with 21 additions and 11 deletions

View file

@ -2,11 +2,10 @@
export HACO_IS_ADDON=true
export HACO_CONFIGS_PATH="/config/haco"
export HACO_OPTIONS_PATH="/data/options.json"
export MQTT_HOST="$(bashio::services mqtt 'host')"
export MQTT_PASSWORD="$(bashio::services mqtt 'password')"
export MQTT_PORT="$(bashio::services mqtt 'port')"
export MQTT_USERNAME="$(bashio::services mqtt 'username')"
cp /data/options.json /config/haco/options.json
haco-daemon