Update 00-global_var.sh

This commit is contained in:
Alexandre
2022-01-14 21:51:56 +01:00
committed by GitHub
parent 8a9997a5de
commit 144357755b

View File

@@ -16,11 +16,10 @@ for KEYS in ${arr[@]}; do
line="${KEYS}=${VALUE//[\"\']/}" line="${KEYS}=${VALUE//[\"\']/}"
# Use locally # Use locally
if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi
export $line # Export the variable to run scripts
# Export the variable to run scripts line="${KEYS}=${VALUE//[\"\']/} 2>/dev/null || true"
line="${KEYS}=${VALUE//[\"\']/} &>/dev/null" [ -f /etc/services.d/*/*run* ] && sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null || true
sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null [ -f /etc/cont-init.d/*run* ] && sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null || true
sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null
done done
################ ################