From 8fecf81c0ef90368ef09e54f6de2257f055e6c07 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 14 Nov 2021 20:58:20 +0100 Subject: [PATCH] Update 99-run.sh --- enedisgateway2mqtt/rootfs/scripts/99-run.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/enedisgateway2mqtt/rootfs/scripts/99-run.sh b/enedisgateway2mqtt/rootfs/scripts/99-run.sh index 6f87bc2c2..57caa8a7a 100644 --- a/enedisgateway2mqtt/rootfs/scripts/99-run.sh +++ b/enedisgateway2mqtt/rootfs/scripts/99-run.sh @@ -55,9 +55,6 @@ done bashio::log.info "Starting the app with the variables in /config/enedisgateway2mqtt" -# Force asset token string -ASSET_TOKEN="string" - # For all keys in config file for word in $(cat $CONFIGSOURCE); do # Data validation @@ -70,6 +67,11 @@ for word in $(cat $CONFIGSOURCE); do fi done +# Force asset token string +export ACCESS_TOKEN=$(bashio::config 'ACCESS_TOKEN') +export PDL=$(bashio::config 'PDL') +export MQTT_HOST=$(bashio::config 'MQTT_HOST') + ############## # Launch App # ##############