File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
build/opt/init-wrapper/post-init.d Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
33set -ex
44
5- date ' +%Y-%m-%d %H:%M:%S Started.' >> /tmp/hassio.log
5+ date ' +%Y-%m-%d %H:%M:%S Started.'
Original file line number Diff line number Diff line change 44
55if [ $( 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
88fi
Original file line number Diff line number Diff 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 ))
3333done
You can’t perform that action at this time.
0 commit comments