Skip to content

Commit 2c6058e

Browse files
authored
bika arch
1 parent 0fee0b9 commit 2c6058e

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

install-bika.sh

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,30 @@ EOF
1919

2020
trap notes ERR
2121

22+
map_arch() {
23+
local arch=$(uname -m)
24+
case $arch in
25+
x86_64)
26+
echo "amd64"
27+
;;
28+
aarch64)
29+
echo "arm64"
30+
;;
31+
armv7l)
32+
echo "arm"
33+
;;
34+
*)
35+
echo "$arch"
36+
;;
37+
esac
38+
}
39+
arch=$(map_arch)
40+
2241
if ! docker info >/dev/null 2>&1; then
2342
os=$(uname -s)
24-
arch=$(uname -m)
2543
if [ "$os" == "Linux" ]; then
26-
wget -C https://download-selfhosted.bika.ai/docker-compose/${arch}/docker-28.0.1.tgz
27-
tar -zxvf docker.tgz -C /tmp
44+
curl -O https://download-selfhosted.bika.ai/docker-compose/${arch}/docker-28.0.1.tgz
45+
tar -zxvf docker-28.0.1.tgz -C /tmp
2846
mkdir -p /etc/docker
2947
mkdir -p /usr/local/lib/docker/cli-plugins
3048

0 commit comments

Comments
 (0)