mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-04 00:01:36 +01:00
Use .env
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user