From b38ad92ff94b9fb9740f6daf0f57cfe4f0174d2b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 12 Nov 2022 21:26:09 +0100 Subject: [PATCH] Use .env --- .templates/90-config_yaml.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.templates/90-config_yaml.sh b/.templates/90-config_yaml.sh index cd3fe2abb..9e5734a64 100644 --- a/.templates/90-config_yaml.sh +++ b/.templates/90-config_yaml.sh @@ -117,8 +117,9 @@ while IFS= read -r line; do [ ! -f /env.py ] && echo "import os" > /env.py echo "os.environ['${line%%=*}'] = '${line#*=}'" >> /env.py python3 /env.py - rm /env.py fi + # set .env + echo "$line" >> /.env || true # Show in log if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi else