From 143c60d1390306b6d8cd0195b720a6de9a5d22a1 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 26 Feb 2024 00:16:19 +0100 Subject: [PATCH] warp it --- BOOSTRAP/Readme.md | 2 +- install.sh | 4 ++-- kubo_v0.20.0_linux.install.sh | 37 ----------------------------------- templates/P4N/index.html | 20 +++++++++---------- 4 files changed, 13 insertions(+), 50 deletions(-) delete mode 100755 kubo_v0.20.0_linux.install.sh diff --git a/BOOSTRAP/Readme.md b/BOOSTRAP/Readme.md index ed8f275f..68017209 100644 --- a/BOOSTRAP/Readme.md +++ b/BOOSTRAP/Readme.md @@ -123,7 +123,7 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEtg3SlRxtzsQnsBSeU83W0tvUyBTUvOU5lhjlbZVPCZ * “keygen” https://git.p2p.legal/STI/Astroport.ONE/src/branch/master/tools/keygen * “natools” https://git.p2p.legal/STI/Astroport.ONE/src/branch/master/tools/natools.py * “jaklis” https://git.p2p.legal/axiom-team/jaklis -* “ipfs” https://git.p2p.legal/STI/Astroport.ONE/src/branch/master/kubo_v0.20.0_linux.install.sh +* “ipfs” https://git.p2p.legal/STI/Astroport.ONE/src/branch/master/install.kubo_v0.20.0_linux.sh ## ASTROPORT CREW GILET https://astroport.myspreadshop.fr/create?product=a68ad31e-d554-4c75-821d-97b00d6ad13f&view=2 diff --git a/install.sh b/install.sh index 83efdc9f..b1bb1292 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.20.0_linux.install.sh)" \ +&& echo "bash <(wget -qO- https://git.p2p.legal/qo-op/Astroport.ONE/raw/branch/master/install.kubo_v0.20.0_linux.sh)" \ && architecture=$(uname -m) && [[ $architecture == "x86_64" || $architecture == "aarch64" || "$architecture" == "armv7l" ]] \ -&& bash <(wget -qO- https://raw.githubusercontent.com/papiche/Astroport.ONE/master/kubo_v0.20.0_linux.install.sh) \ +&& bash <(wget -qO- https://raw.githubusercontent.com/papiche/Astroport.ONE/master/install.kubo_v0.20.0_linux.sh) \ || echo "=== IPFS FOUND === OK" [[ ! $(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 deleted file mode 100755 index 1cddeb35..00000000 --- a/kubo_v0.20.0_linux.install.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -[ $(id -u) -eq 0 ] && echo "LANCEMENT root INTERDIT. Utilisez un simple utilisateur du groupe \"sudo\" SVP" && exit 1 - -mkdir -p ~/.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 - # /ipfs/QmPA3PLy3pCFssr9vFn9SY2amegWT3GyFYS1g4T5hJwW4d -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 - # /ipfs/QmaLDWNLLUpTSZUE9YaZq3id6bNDcZsEmaW7xQFrzhD7Yy -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 - # /ipfs/QmWA5L51H7ALodxWv3nT1XhWbRLdFVjC1SPENCFMH9nQAc -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* \ -|| echo "problem occured" - -exit 0 diff --git a/templates/P4N/index.html b/templates/P4N/index.html index 897a7288..5096b486 100644 --- a/templates/P4N/index.html +++ b/templates/P4N/index.html @@ -37,19 +37,19 @@