File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
opt/init-wrapper/post-init.d Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 88
99if [ $( 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
1213fi
1314
1415apt-get install --no-install-recommends -y docker-ce
Original file line number Diff line number Diff line change 22
33set -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} ;;
138esac
149
1510xargs -0 -n1 < /proc/1/environ | sed " s/=\(.*\)/='\1'/" | while read line; do
Original file line number Diff line number Diff line change @@ -38,9 +38,8 @@ apt-get -y -qq install iptables libip6tc2 libnetfilter-conntrack3 libnfnetlink0
3838
3939ARCH=$( uname -m)
4040case ${ARCH} in
41- " armv7l" )
42- ARCH=" armv7"
43- ;;
41+ " armv7l" | " armhf" ) ARCH=" armv7" ;;
42+ " armv6l" ) ARCH=" armv6" ;;
4443esac
4544wget --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"
4645wget --tries=3 -O /opt/hassio.deb " https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb"
You can’t perform that action at this time.
0 commit comments