We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75081af commit 1072a09Copy full SHA for 1072a09
build/opt/init-wrapper/post-init.d/12-hassio
@@ -25,6 +25,7 @@ while [ "$CHECK_TIMES" -le "5" ]; do
25
sleep 10
26
status=$(docker inspect -f '{{.State.Running}}' homeassistant 2>/dev/null)
27
if [ "$status" = "true" ]; then
28
+ date "+%Y-%m-%d %H:%M:%S" >> /tmp/hassio.log
29
exit 0
30
fi
31
ha core start >> /tmp/hassio.log 2>&1
build/opt/init-wrapper/pre-init.d/99-install-post-init
@@ -5,7 +5,8 @@ if [ ! -f /etc/rc.local ]; then
5
chmod +x /etc/rc.local
6
7
8
+now=$(date "+%Y-%m-%d %H:%M:%S")
9
cmd="run-parts /opt/init-wrapper/post-init.d"
10
-echo "echo Started. >> /tmp/hassio.log" >> /etc/rc.local
11
+echo "echo '$now Started.' >> /tmp/hassio.log" >> /etc/rc.local
12
echo "$cmd >> /tmp/hassio.log 2>&1" >> /etc/rc.local
0 commit comments