mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-04 16:15:12 +02:00
Update 00-global_var.sh
This commit is contained in:
@@ -20,6 +20,7 @@ for KEYS in "${arr[@]}"; do
|
|||||||
# Export the variable to run scripts
|
# Export the variable to run scripts
|
||||||
line="${KEYS}=${VALUE//[\"\']/} &>/dev/null"
|
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/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*
|
||||||
done
|
done
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|||||||
Reference in New Issue
Block a user