From 0e2c5c0a6bf7a609301f253b87ec7b9116646c4e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 31 Mar 2022 21:19:44 +0200 Subject: [PATCH] export locally --- .templates/00-global_var.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index 206ab8172..8f032234e 100644 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -16,12 +16,14 @@ for KEYS in "${arr[@]}"; do # export key VALUE=$(jq ."$KEYS" "${JSONSOURCE}") line="${KEYS}='${VALUE//[\"\']/}'" - # Use locally + # text if bashio::config.false "verbose" || [[ "${KEYS}" == *"PASS"* ]]; then bashio::log.blue "${KEYS}=******" else bashio::log.blue "$line" fi + # Use locally + export "${KEYS}='${VALUE//[\"\']/}'" # Export the variable to run scripts if cat /etc/services.d/*/*run* &>/dev/null; then sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null; fi if cat /etc/cont-init.d/*run* &>/dev/null; then sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null; fi