Update 90-config_yaml.sh

This commit is contained in:
Alexandre
2021-11-29 07:06:23 +01:00
committed by GitHub
parent 1e01a0ca52
commit 0b40a6fa85

View File

@@ -65,7 +65,7 @@ for word in $(parse_yaml "$CONFIGSOURCE" ""); do
if [[ $word =~ ^.+[=].+$ ]]; then
sed -i "1a export $word" /etc/services.d/*/run # Export the variable
#sed -i "1a echo "... ENV exported : $word" /etc/services.d/*/run # Show text in colour
sed -i "1a echo \"\$(tput setaf 2)... ENV exported : $word\$(tput sgr0)\"" /etc/services.d/*/run # Show text in colour
sed -i "1a echo \"\$(tput setaf 2)... ENV exported : $word \$(tput sgr0)\"" /etc/services.d/*/run # Show text in colour
bashio::log.blue "$word"
else
bashio::log.fatal "$word does not follow the structure KEY=text, it will be ignored and removed from the config"