Skip to content

Commit 420c7f4

Browse files
committed
📂 Hass Configurator
1 parent 83f4e48 commit 420c7f4

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ RUN \
2020

2121
COPY rootfs /
2222

23+
ENTRYPOINT [ "/run.sh" ]
2324
CMD [ "hass-configurator", "/etc/configurator.conf" ]
2425
HEALTHCHECK --interval=1m --start-period=10s CMD curl --fail http://127.0.0.1:8099 || exit 1

‎rootfs/run.sh‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
if [ -z "${HC_HASS_API_PASSWORD}" ]; then
4+
config=${HC_BASEPATH:-/homeassistant}
5+
export HC_HASS_API_PASSWORD=$(cat "$config/.storage/.hass_token_long")
6+
fi;
7+
8+
exec "$@"

0 commit comments

Comments
 (0)