mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-07 14:38:48 +02:00
Update 90-config_yaml.sh
This commit is contained in:
@@ -81,10 +81,10 @@ while IFS= read -r line; do
|
|||||||
fi
|
fi
|
||||||
# Data validation
|
# Data validation
|
||||||
if [[ $line =~ ^.+[=].+$ ]]; then
|
if [[ $line =~ ^.+[=].+$ ]]; then
|
||||||
export $line
|
export $line 2> /dev/null
|
||||||
# Export the variable
|
# Export the variable
|
||||||
sed -i "1a export $line" /etc/services.d/*/*run* 2>/dev/null || true
|
[ -f /etc/services.d/*/*run* ] && sed -i "1a export $line 2>/dev/null || true" /etc/services.d/*/*run* || true
|
||||||
sed -i "1a export $line" /etc/cont-init.d/*run* 2>/dev/null
|
[ -f /etc/cont-init.d/*run* ] && sed -i "1a export $line 2>/dev/null || true" /etc/cont-init.d/*run* || true
|
||||||
# Show in log
|
# Show in log
|
||||||
if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi
|
if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user