From cf49cad0aae88f9bf7f91ff4750c46d34f1c7bfa Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Thu, 27 Jun 2024 21:27:08 +1000 Subject: [PATCH] Port Kubo to ARM64 --- ct/kubo.sh | 9 ++++----- install/kubo-install.sh | 9 +++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ct/kubo.sh b/ct/kubo.sh index e792b791f..3eafbb54b 100644 --- a/ct/kubo.sh +++ b/ct/kubo.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) -# Co-Author: ulmentflam # License: MIT # https://github.com/tteck/Proxmox/raw/main/LICENSE @@ -60,11 +59,11 @@ if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP} msg_info "Updating $APP LXC" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null - wget -q "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz" - tar -xzf "kubo_${RELEASE}_linux-amd64.tar.gz" -C /usr/local + wget -q "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-arm64.tar.gz" + tar -xzf "kubo_${RELEASE}_linux-arm64.tar.gz" -C /usr/local systemctl restart ipfs.service echo "${RELEASE}" >/opt/${APP}_version.txt - rm "kubo_${RELEASE}_linux-amd64.tar.gz" + rm "kubo_${RELEASE}_linux-arm64.tar.gz" msg_ok "Updated $APP LXC" else msg_ok "No update required. ${APP} is already at ${RELEASE}" diff --git a/install/kubo-install.sh b/install/kubo-install.sh index 390674c1e..5e44e7c69 100644 --- a/install/kubo-install.sh +++ b/install/kubo-install.sh @@ -2,7 +2,6 @@ # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) -# Co-Author: ulmentflam # License: MIT # https://github.com/tteck/Proxmox/raw/main/LICENSE @@ -19,12 +18,14 @@ $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc $STD apt-get install -y gpg +$STD apt-get install -y wget +$STD apt-get install -y openssh-server msg_ok "Installed Dependencies" msg_info "Installing IPFS" RELEASE=$(wget -q https://github.com/ipfs/kubo/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) -$STD wget -q "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz" -tar -xzf "kubo_${RELEASE}_linux-amd64.tar.gz" -C /usr/local +$STD wget -q "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-arm64.tar.gz" +tar -xzf "kubo_${RELEASE}_linux-arm64.tar.gz" -C /usr/local $STD ln -s /usr/local/kubo/ipfs /usr/local/bin/ipfs $STD ipfs init ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001 @@ -33,7 +34,7 @@ LXCIP=$(hostname -I | awk '{print $1}') ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"http://${LXCIP}:5001\", \"http://localhost:3000\", \"http://127.0.0.1:5001\", \"https://webui.ipfs.io\", \"http://0.0.0.0:5001\"]" ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]' echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" -$STD rm "kubo_${RELEASE}_linux-amd64.tar.gz" +$STD rm "kubo_${RELEASE}_linux-arm64.tar.gz" msg_ok "Installed IPFS" msg_info "Creating Service"