Update Kubo status

This commit is contained in:
Sam Heinz
2024-06-27 21:33:20 +10:00
parent cf49cad0aa
commit f566ce60a0
3 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ $STD apt-get install -y wget
$STD apt-get install -y openssh-server
msg_ok "Installed Dependencies"
msg_info "Installing IPFS"
msg_info "Installing Kubo"
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-arm64.tar.gz"
tar -xzf "kubo_${RELEASE}_linux-arm64.tar.gz" -C /usr/local
@@ -35,7 +35,7 @@ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"http://${LXCI
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]'
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
$STD rm "kubo_${RELEASE}_linux-arm64.tar.gz"
msg_ok "Installed IPFS"
msg_ok "Installed Kubo"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/ipfs.service