From e5c15be7c2d955c75f1ea3a976b83c8218eae0a9 Mon Sep 17 00:00:00 2001 From: qo-op Date: Mon, 4 May 2020 17:05:23 +0200 Subject: [PATCH] TRUST @qo-op --- .install/ipfs_alone.sh | 9 ++++----- README.md | 13 ++++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.install/ipfs_alone.sh b/.install/ipfs_alone.sh index 733e453..dbfa112 100644 --- a/.install/ipfs_alone.sh +++ b/.install/ipfs_alone.sh @@ -1,8 +1,9 @@ #!/bin/bash -# Install IPFS get template from git (soon IPFS TODO) - +######################################################################## +{ # this ensures the entire script is downloaded # MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized +ME="${0##*/}" # CHECK if daemon is already running [[ $(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) ]] \ @@ -65,6 +66,4 @@ ipfs config --json Experimental.Libp2pStreamMounting true ipfs bootstrap rm --all sudo systemctl restart ipfs || err+="Restart IPFS daemon" - - -exit 0 +} # this ensures the entire script is downloaded # diff --git a/README.md b/README.md index ee5642c..0c4757e 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,14 @@ It's using: 1 - **Run [.install/ipfs_alone.sh](https://git.p2p.legal/axiom-team/astroport/src/master/.install/ipfs_alone.sh) and start “ipfs daemon”** ``` -curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs_alone.sh -o /tmp/ipfsA.sh -chmod +x /tmp/ipfsA.sh -# Verify code is safe running with "xed /tmp/ipfsA.sh" -# Now RUN it -/tmp/ipfsA.sh +# WE ENCOURAGE YOU TO UNDERSTAND CODE YOU ARE EXECUTING, to do so +# curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs_alone.sh -o /tmp/ipfsA.sh +# xed /tmp/ipfsA.sh +# If you are happy with what you read and understood. RUN +# chmod +x /tmp/ipfsA.sh && /tmp/ipfsA.sh +# IF YOU TRUST @qo-op, then run +curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs_alone.sh | bash + ``` SystemD ARM & x86_64 compatible. Submit an issue for your Arch.