This commit is contained in:
qo-op 2020-05-04 17:05:23 +02:00
parent a527d53521
commit e5c15be7c2
2 changed files with 12 additions and 10 deletions

View File

@ -1,8 +1,9 @@
#!/bin/bash #!/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="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
ME="${0##*/}"
# CHECK if daemon is already running # 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) ]] \ [[ $(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 ipfs bootstrap rm --all
sudo systemctl restart ipfs || err+="Restart IPFS daemon" sudo systemctl restart ipfs || err+="Restart IPFS daemon"
} # this ensures the entire script is downloaded #
exit 0

View File

@ -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”** 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 # WE ENCOURAGE YOU TO UNDERSTAND CODE YOU ARE EXECUTING, to do so
chmod +x /tmp/ipfsA.sh # curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs_alone.sh -o /tmp/ipfsA.sh
# Verify code is safe running with "xed /tmp/ipfsA.sh" # xed /tmp/ipfsA.sh
# Now RUN it # If you are happy with what you read and understood. RUN
/tmp/ipfsA.sh # 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. SystemD ARM & x86_64 compatible. Submit an issue for your Arch.