From 3efce3325caaba18ec45ab9fbea9b51db6f2d279 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 6 Jan 2023 14:59:26 +0100 Subject: [PATCH] [[ $architecture == "x86_64" || $architecture == "aarch64" ]] --- install.sh | 7 ++++--- kubo_v0.16.0_linux-amd64.install.sh | 16 ---------------- 2 files changed, 4 insertions(+), 19 deletions(-) delete mode 100755 kubo_v0.16.0_linux-amd64.install.sh diff --git a/install.sh b/install.sh index f0f5c3b2..b30b6105 100755 --- a/install.sh +++ b/install.sh @@ -16,10 +16,11 @@ 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-amd64.install.sh)" \ -&& [[ $(uname -p) == "x86_64" ]] \ -&& bash <(wget -qO- https://git.p2p.legal/qo-op/Astroport.ONE/raw/branch/master/kubo_v0.16.0_linux-amd64.install.sh) \ +&& echo "bash <(wget -qO- https://git.p2p.legal/qo-op/Astroport.ONE/raw/branch/master/kubo_v0.16.0_linux.install.sh)" \ +&& architecture=$(uname -m) && [[ $architecture == "x86_64" || $architecture == "aarch64" ]] \ +&& bash <(wget -qO- https://git.p2p.legal/qo-op/Astroport.ONE/raw/branch/master/kubo_v0.16.0_linux.install.sh) \ || echo "=== Installez IPFS KUBO puis relancez Install ===" + [[ ! $(which ipfs) ]] && echo "INSTALL IPFS PLEASE" && exit 1 #################################################################### TEST diff --git a/kubo_v0.16.0_linux-amd64.install.sh b/kubo_v0.16.0_linux-amd64.install.sh deleted file mode 100755 index 5d7d9ccd..00000000 --- a/kubo_v0.16.0_linux-amd64.install.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -[ $(id -u) -eq 0 ] && echo "LANCEMENT root INTERDIT. Utilisez un simple utilisateur du groupe \"sudo\" SVP" && exit 1 - -# Download & decompress -mkdir ~/.zen/tmp -cd ~/.zen/tmp -wget https://dist.ipfs.tech/kubo/v0.16.0/kubo_v0.16.0_linux-amd64.tar.gz -tar -xvzf kubo_v0.16.0_linux-amd64.tar.gz -cd kubo - -# Install -sudo bash install.sh - -# Test & clean -[[ $(ipfs --version) ]] \ -&& rm -Rf ~/.zen/tmp/kubo*