mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 20:34:04 +02:00
Update 90-config_yaml.sh
This commit is contained in:
@@ -85,11 +85,11 @@ while IFS= read -r line; do
|
|||||||
logmsg="Variable set : $line"
|
logmsg="Variable set : $line"
|
||||||
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 bashio::log.blue $logmsg || echo \$(tput setaf 2)$logmsg\$(tput setaf 0)" /etc/services.d/*/run # Show text in colour
|
sed -i "1a bashio::log.blue $logmsg 2>/dev/null || echo \$(tput -T xterm setaf 2)$logmsg\$(tput -T xterm setaf 0) 2>/dev/null" /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 bashio::log.blue $logmsg || echo \$(tput setaf 2)$logmsg\$(tput setaf 0)" /scripts/*run* # Show text in colour
|
sed -i "1a bashio::log.blue $logmsg 2>/dev/null || echo \$(tput -T xterm setaf 2)$logmsg\$(tput -T xterm setaf 0) 2>/dev/null" /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