Skip to content

Commit 0671736

Browse files
committed
🦸‍ Home Assistant Supervised in Docker
1 parent 8c11197 commit 0671736

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build/opt/init-wrapper/post-init.d/00-init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
set -ex
44

5-
date '+%Y-%m-%d %H:%M:%S Started.' >> /tmp/hassio.log
5+
date '+%Y-%m-%d %H:%M:%S Started.'

build/opt/init-wrapper/post-init.d/09-docker-apt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ set -ex
44

55
if [ $(cat /etc/timezone) = "Asia/Shanghai" ]; then
66
cat /opt/docker.ustc > /etc/apt/sources.list.d/docker.list
7-
apt-get -qq update >/dev/null
7+
apt-get -qq update >/dev/null 2>&1
88
fi

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ 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
28+
date "+%Y-%m-%d %H:%M:%S hass-supper is ok." >> /tmp/hassio.log
2929
exit 0
3030
fi
31-
ha core start >> /tmp/hassio.log 2>&1
31+
ha core start --no-progress --log-level debug >> /tmp/hassio.log 2>&1
3232
CHECK_TIMES=$((CHECK_TIMES + 1))
3333
done

0 commit comments

Comments
 (0)