mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update 90-config_yaml.sh
This commit is contained in:
@@ -84,11 +84,13 @@ while IFS= read -r line; do
|
|||||||
export $line # Export the variable
|
export $line # Export the variable
|
||||||
if [ -f /etc/services.d/*/*run* ]; then
|
if [ -f /etc/services.d/*/*run* ]; then
|
||||||
sed -i "1a export $line" /etc/services.d/*/run # Export the variable
|
sed -i "1a export $line" /etc/services.d/*/run # Export the variable
|
||||||
sed -i "1a TERM=dumb && echo \$(tput setaf 2)Variable set : $line\$(tput setaf 0)" /etc/services.d/*/run # Show text in colour
|
sed -i "1a echo \$(tput setaf 2)Variable set : $line\$(tput setaf 0)" /etc/services.d/*/run # Show text in colour
|
||||||
|
sed -i "1a export TERM=dumb" /etc/services.d/*/run # Show text in colour
|
||||||
fi
|
fi
|
||||||
if [ -f /scripts/*run* ]; then
|
if [ -f /scripts/*run* ]; then
|
||||||
sed -i "1a export $line" /scripts/*run* # Export the variable
|
sed -i "1a export $line" /scripts/*run* # Export the variable
|
||||||
sed -i "1a TERM=dumb && echo \$(tput setaf 2)Variable set : $line\$(tput setaf 0)" /scripts/*run* # Show text in colour
|
sed -i "1a echo \$(tput setaf 2)Variable set : $line\$(tput setaf 0)" /scripts/*run* # Show text in colour
|
||||||
|
sed -i "1a export TERM=dumb" /scripts/*run* # Show text in colour
|
||||||
fi
|
fi
|
||||||
bashio::log.blue "$line"
|
bashio::log.blue "$line"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user