Skip to content

Commit 8638ed8

Browse files
committed
🦸‍ Home Assistant Supervised in Docker
1 parent 83ac9f1 commit 8638ed8

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

build/opt/init-wrapper/post-init.d/10-docker

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ fi
88

99
if [ $(cat /etc/timezone) = "Asia/Shanghai" ]; then
1010
sed -i 's@download.docker.com@mirrors.ustc.edu.cn/docker-ce@g' /etc/apt/sources.list.d/docker.list
11-
apt-get update
11+
curl -fsSL "https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg" -o /etc/apt/keyrings/docker.asc
12+
apt-get -qq update >/dev/null
1213
fi
1314

1415
apt-get install --no-install-recommends -y docker-ce

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22

33
set -ex
44

5-
ARCH=$(uname -m)
6-
case ${ARCH} in
7-
"arm" | "armv6l" | "armv7l")
8-
export MACHINE=${MACHINE:=qemuarm}
9-
;;
10-
"aarch64")
11-
export MACHINE=${MACHINE:=qemuarm-64}
12-
;;
5+
case $(uname -m) in
6+
"aarch64" | "arm64") export MACHINE=${MACHINE:=qemuarm-64} ;;
7+
"armv6l" | "armv7l") export MACHINE=${MACHINE:=qemuarm} ;;
138
esac
149

1510
xargs -0 -n1 < /proc/1/environ | sed "s/=\(.*\)/='\1'/" | while read line; do

build/scripts/10-hassio-apt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ apt-get -y -qq install iptables libip6tc2 libnetfilter-conntrack3 libnfnetlink0
3838

3939
ARCH=$(uname -m)
4040
case ${ARCH} in
41-
"armv7l")
42-
ARCH="armv7"
43-
;;
41+
"armv7l" | "armhf") ARCH="armv7" ;;
42+
"armv6l") ARCH="armv6" ;;
4443
esac
4544
wget --tries=3 -O /opt/os-agent.deb "https://github.com/home-assistant/os-agent/releases/download/1.6.0/os-agent_1.6.0_linux_$ARCH.deb"
4645
wget --tries=3 -O /opt/hassio.deb "https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb"

0 commit comments

Comments
 (0)