Skip to content

Commit 1072a09

Browse files
committed
🦸‍ Home Assistant Supervised in Docker
1 parent 75081af commit 1072a09

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build/opt/init-wrapper/post-init.d/12-hassio

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ while [ "$CHECK_TIMES" -le "5" ]; do
2525
sleep 10
2626
status=$(docker inspect -f '{{.State.Running}}' homeassistant 2>/dev/null)
2727
if [ "$status" = "true" ]; then
28+
date "+%Y-%m-%d %H:%M:%S" >> /tmp/hassio.log
2829
exit 0
2930
fi
3031
ha core start >> /tmp/hassio.log 2>&1

build/opt/init-wrapper/pre-init.d/99-install-post-init

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ if [ ! -f /etc/rc.local ]; then
55
chmod +x /etc/rc.local
66
fi
77

8+
now=$(date "+%Y-%m-%d %H:%M:%S")
89
cmd="run-parts /opt/init-wrapper/post-init.d"
910

10-
echo "echo Started. >> /tmp/hassio.log" >> /etc/rc.local
11+
echo "echo '$now Started.' >> /tmp/hassio.log" >> /etc/rc.local
1112
echo "$cmd >> /tmp/hassio.log 2>&1" >> /etc/rc.local

0 commit comments

Comments
 (0)