mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Update 00-global_var.sh
This commit is contained in:
@@ -18,9 +18,9 @@ for KEYS in "${arr[@]}"; do
|
|||||||
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 $line
|
||||||
# Export the variable to run scripts
|
# Export the variable to run scripts
|
||||||
line="${KEYS}=${VALUE//[\"\']/} &>/dev/null"
|
line="${KEYS}=${VALUE//[\"\']/}"
|
||||||
sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null || sed -i "1a export $line" /scripts/*run*
|
sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null || true
|
||||||
sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null || sed -i "1a export $line" /scripts/*run*
|
sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null || true
|
||||||
done
|
done
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|||||||
Reference in New Issue
Block a user