Update start.sh to load environment variables

Modify start.sh to include environment variable loading.
This commit is contained in:
Alexandre
2026-03-20 14:50:16 +01:00
committed by GitHub
parent 78c3231b89
commit eb7939eaaa

View File

@@ -70,7 +70,8 @@ RUN chmod 777 /ha_entrypoint.sh
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/bashio-standalone.sh" "/usr/local/lib/bashio-standalone.sh"
RUN chmod 0755 /usr/local/lib/bashio-standalone.sh
RUN sed -i "2a /./ha_entrypoint.sh" ./scripts/start.sh
RUN sed -i "2a /./ha_entrypoint.sh" ./scripts/start.sh && \
sed -i "3a if [ -f /.env ]; then set -a; . /.env; set +a; fi" ./scripts/start.sh
############
# 5 Labels #