mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-18 06:41:51 +02:00
Update start.sh to load environment variables
Modify start.sh to include environment variable loading.
This commit is contained in:
@@ -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"
|
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 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 #
|
# 5 Labels #
|
||||||
|
|||||||
Reference in New Issue
Block a user