From f039d5958b9a5f0a0e01f58b33c4cc78b3990812 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 7 Jun 2023 12:11:10 +0200 Subject: [PATCH] updating to kubo v0.20.0 --- install.sh | 4 ++-- kubo_v0.20.0_linux.install.sh | 44 +++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100755 kubo_v0.20.0_linux.install.sh diff --git a/install.sh b/install.sh index 76cf682e..088b2022 100755 --- a/install.sh +++ b/install.sh @@ -20,9 +20,9 @@ start=`date +%s` ################################################################### IPFS ######################################################################## [[ ! $(which ipfs) ]] \ -&& echo "bash <(wget -qO- https://git.p2p.legal/qo-op/Astroport.ONE/raw/branch/master/kubo_v0.16.0_linux.install.sh)" \ +&& echo "bash <(wget -qO- https://git.p2p.legal/qo-op/Astroport.ONE/raw/branch/master/kubo_v0.20.0_linux.install.sh)" \ && architecture=$(uname -m) && [[ $architecture == "x86_64" || $architecture == "aarch64" || "$architecture" == "armv7l" ]] \ -&& bash <(wget -qO- https://raw.githubusercontent.com/papiche/Astroport.ONE/master/kubo_v0.16.0_linux.install.sh) \ +&& bash <(wget -qO- https://raw.githubusercontent.com/papiche/Astroport.ONE/master/kubo_v0.20.0_linux.install.sh) \ || echo "=== Installez IPFS KUBO puis relancez Install ===" [[ ! $(which ipfs) ]] && echo "INSTALL IPFS PLEASE" && exit 1 diff --git a/kubo_v0.20.0_linux.install.sh b/kubo_v0.20.0_linux.install.sh new file mode 100755 index 00000000..69669823 --- /dev/null +++ b/kubo_v0.20.0_linux.install.sh @@ -0,0 +1,44 @@ +#!/bin/bash +[ $(id -u) -eq 0 ] && echo "LANCEMENT root INTERDIT. Utilisez un simple utilisateur du groupe \"sudo\" SVP" && exit 1 + +mkdir ~/.zen/tmp +cd ~/.zen/tmp + +# Check processor architecture +architecture=$(uname -m) + +# Download appropriate version of kubo +if [ "$architecture" == "x86_64" ]; then + wget -O kubo.tar.gz https://dist.ipfs.tech/kubo/v0.20.0/kubo_v0.20.0_linux-amd64.tar.gz +elif [ "$architecture" == "aarch64" ]; then + wget -O kubo.tar.gz https://dist.ipfs.tech/kubo/v0.20.0/kubo_v0.20.0_linux-arm64.tar.gz +elif [ "$architecture" == "armv7l" ]; then + wget -O kubo.tar.gz https://dist.ipfs.tech/kubo/v0.20.0/kubo_v0.20.0_linux-arm.tar.gz +else + echo "Error: Unknown architecture" + exit 1 +fi + +tar -xvzf kubo.tar.gz + +cd kubo + +# Install +sudo bash install.sh + +# Test & clean +[[ $(ipfs --version) ]] \ +&& rm -Rf ~/.zen/tmp/kubo* + +[[ $XDG_SESSION_TYPE == 'x11' ]] && xdg-open https://www.openstreetmap.org + + echo "OUVREZ https://www.openstreetmap.org" + echo "ET CALIBREZ LA SYNCHRO 20H12 AVEC LE TEMPS NATUREL" + echo "SAISIR LES COORD. GPS DE VOTRE STATION IPFS (ex: 48.87039, 2.31673)" + read GPS + [[ $GPS == "" ]] && GPS="48.87039, 2.31673" + mkdir -p ~/.zen/ + echo "$GPS" > ~/.zen/GPS + + +exit 0