-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tempio install for arm64 (#11691)
- Loading branch information
1 parent
e431031
commit 7031c47
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
tempio_version="2021.09.0" | ||
|
||
if [[ "${TARGETARCH}" == "amd64" ]]; then | ||
arch="amd64" | ||
elif [[ "${TARGETARCH}" == "arm64" ]]; then | ||
arch="aarch64" | ||
fi | ||
|
||
mkdir -p /rootfs/usr/local/tempio/bin | ||
|
||
wget -q -O /rootfs/usr/local/tempio/bin/tempio "https://github.com/home-assistant/tempio/releases/download/${tempio_version}/tempio_${arch}" | ||
chmod 755 /rootfs/usr/local/tempio/bin/tempio |