Update 90-config_yaml.sh

This commit is contained in:
Alexandre
2021-12-03 19:02:30 +01:00
committed by GitHub
parent 1409558733
commit 9fcd8471d5

View File

@@ -85,11 +85,11 @@ while IFS= read -r line; do
logmsg="Variable set : $line"
if [ -f /etc/services.d/*/*run* ]; then
sed -i "1a export $line" /etc/services.d/*/run # Export the variable
sed -i "1a bashio::log.blue $logmsg || (export TERM=dumb && echo \$(tput setaf 2)$logmsg\$(tput setaf 0)" /etc/services.d/*/run) # Show text in colour
sed -i "1a bashio::log.blue $logmsg || echo \$(tput setaf 2)$logmsg\$(tput setaf 0)" /etc/services.d/*/run # Show text in colour
fi
if [ -f /scripts/*run* ]; then
sed -i "1a export $line" /scripts/*run* # Export the variable
sed -i "1a bashio::log.blue $logmsg || (export TERM=dumb && echo \$(tput setaf 2)$logmsg\$(tput setaf 0)" /scripts/*run*) # Show text in colour
sed -i "1a bashio::log.blue $logmsg || echo \$(tput setaf 2)$logmsg\$(tput setaf 0)" /scripts/*run* # Show text in colour
fi
bashio::log.blue "$line"
else