There was an error while loading. Please reload this page.
1 parent 83f4e48 commit 420c7f4Copy full SHA for 420c7f4
2 files changed
‎Dockerfile‎
@@ -20,5 +20,6 @@ RUN \
20
21
COPY rootfs /
22
23
+ENTRYPOINT [ "/run.sh" ]
24
CMD [ "hass-configurator", "/etc/configurator.conf" ]
25
HEALTHCHECK --interval=1m --start-period=10s CMD curl --fail http://127.0.0.1:8099 || exit 1
‎rootfs/run.sh‎
@@ -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