mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-13 16:34:22 +01: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
|
||||
export $line
|
||||
# Export the variable to run scripts
|
||||
line="${KEYS}=${VALUE//[\"\']/} &>/dev/null"
|
||||
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/cont-init.d/*run* 2>/dev/null || sed -i "1a export $line" /scripts/*run*
|
||||
line="${KEYS}=${VALUE//[\"\']/}"
|
||||
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 || true
|
||||
done
|
||||
|
||||
################
|
||||
|
||||
Reference in New Issue
Block a user