Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
8ab62d59
Commit
8ab62d59
authored
Apr 16, 2019
by
Igor Pecovnik
Browse files
[ bugfix ] hass.io installer was not precise enough, small locale workaround
parent
92ad8e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-software
View file @
8ab62d59
...
...
@@ -82,7 +82,7 @@ fi
#
export
PATH
=/
usr
/
local
/
sbin
:/
usr
/
local
/
bin
:/
usr
/
sbin
:/
usr
/
bin
:/
sbin
:/
bin
[[
-
z
$LC_ALL
]]
&&
export
LC_ALL
=
"C"
function
check_status
...
...
@@ -835,14 +835,23 @@ install_hassio ()
#
Install
Home
assistant
smart
home
suite
hass.io
#
install_docker
debconf-apt-progress
--
apt-get
install
-y
apparmor-utils
apt-transport-https
avahi-daemon
ca-certificates
curl
dbus
jq
network-manager
socat
software-properties-common
local
arch=
$(dpkg
--print-architecture
)
[[
"$
arch
"
==
"
arm64
"
]]
&&
arch=
"aarch64"
docker
pull
homeassistant
/${
arch
}
-homeassistant
curl
-sL
"
https:
//
raw.githubusercontent.com
/
home-assistant
/
hassio-build
/
master
/
install
/
hassio_install
"
>
${TEMP_DIR}/hass.io.bash
bash ${TEMP_DIR}/hass.io.bash -m ${arch}
dialog --backtitle "$BACKTITLE" --title "Please wait" --msgbox "\nIt can take several minutes before Home Assistant UI becomes available! " 7 75
LIST=
("intel-nuc"
"
Intel
NUC
"
"
odroid-c2
"
"
Hardkernel
Odroid
C2
"
"
odroid-xu
"
"
Hardkernel
Odroid
XU4
"
"
orangepi-prime
"
"
Allwinner
H5
boards
"
"
qemuarm
"
"
Virtualized
ARM
"
"
qemuarm-64
"
"
Virtualized
ARM64
"
"
qemux86
"
"
Virtualized
x86
"
"
qemux86-64
"
"
Virtualied
x64
"
"
raspberrypi
"
"1
st
generation
"
"
raspberrypi2
"
"2
nd
generation
"
"
raspberrypi3
"
"3
rd
generation
"
"
raspberrypi3-64
"
"3
rd
generation
arm64
userland
"
"
tinker
"
"
Tinkerboard
")
LIST_LENGTH=
$((${#LIST[@]}/2));
exec
3
>
&
1
#TARGET_BOARD=$(dialog --menu "Choose machine type:" 0 0 0 "${LIST[@]}")
TARGET_BOARD=$(dialog --cancel-label "Cancel" --backtitle "$BACKTITLE" --no-collapse --title "Choose machine type:" --clear --menu "" $((6+${LIST_LENGTH})) 52 25 "${LIST[@]}" 2>
&
1 1>
&
3)
exitstatus=$?;
exec 3>
&
-
if [ $exitstatus = 0 ]; then
install_docker
debconf-apt-progress -- apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common
local arch=$(dpkg --print-architecture)
[[ "$arch" == "arm64" ]]
&&
arch="aarch64"
docker pull homeassistant/${arch}-homeassistant
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install" > ${TEMP_DIR}/hass.io.bash
bash ${TEMP_DIR}/hass.io.bash -m ${TARGET_BOARD}
dialog --backtitle "$BACKTITLE" --title "Please wait" --msgbox "\nIt can take several minutes before Home Assistant UI becomes available! " 7 75
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment