mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-29 01:10:32 +02:00
Update 00-global_var.sh
This commit is contained in:
@@ -107,7 +107,7 @@ for KEYS in "${arr[@]}"; do
|
|||||||
echo "$line" >> /etc/environment
|
echo "$line" >> /etc/environment
|
||||||
# For non s6
|
# For non s6
|
||||||
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/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
|
if cat /etc/cont-init.d/*.sh &> /dev/null; then sed -i "1a export $line" /etc/cont-init.d/*.sh 2> /dev/null; fi
|
||||||
# For s6
|
# For s6
|
||||||
if [ -d /var/run/s6/container_environment ]; then printf "%s" "${VALUE}" > /var/run/s6/container_environment/"${KEYS}"; fi
|
if [ -d /var/run/s6/container_environment ]; then printf "%s" "${VALUE}" > /var/run/s6/container_environment/"${KEYS}"; fi
|
||||||
echo "export ${KEYS}='${VALUE}'" >> ~/.bashrc
|
echo "export ${KEYS}='${VALUE}'" >> ~/.bashrc
|
||||||
|
|||||||
Reference in New Issue
Block a user