forked from axiom-team/astrXbian
elif [ ${MACHINE_TYPE} == 'aarch64' ]; then
This commit is contained in:
parent
7a5bad7365
commit
69a88219a1
|
@ -44,19 +44,30 @@ if [ ${MACHINE_TYPE} == 'x86_64' ]; then
|
||||||
curl -s https://dist.ipfs.io/ipfs-update/v1.6.0/ipfs-update_v1.6.0_linux-amd64.tar.gz -o $MY_PATH/ipfs-update.tar.gz
|
curl -s https://dist.ipfs.io/ipfs-update/v1.6.0/ipfs-update_v1.6.0_linux-amd64.tar.gz -o $MY_PATH/ipfs-update.tar.gz
|
||||||
elif [ ${MACHINE_TYPE:0:3} == 'arm' ]; then
|
elif [ ${MACHINE_TYPE:0:3} == 'arm' ]; then
|
||||||
curl -s https://dist.ipfs.io/ipfs-update/v1.6.0/ipfs-update_v1.6.0_linux-arm.tar.gz -o $MY_PATH/ipfs-update.tar.gz
|
curl -s https://dist.ipfs.io/ipfs-update/v1.6.0/ipfs-update_v1.6.0_linux-arm.tar.gz -o $MY_PATH/ipfs-update.tar.gz
|
||||||
|
elif [ ${MACHINE_TYPE} == 'aarch64' ]; then
|
||||||
|
curl -s https://github.com/ipfs/go-ipfs/releases/download/v0.9.1/go-ipfs_v0.9.1_linux-arm64.tar.gz -o /tmp/ipfs_aarch64_v0.9.1.tar.gz
|
||||||
else
|
else
|
||||||
[ ! -f $MY_PATH/ipfs-update.tar.gz ] && err "Your $MACHINE_TYPE is not supported yet... Please add an issue."
|
echo "Your $MACHINE_TYPE is not supported yet... Please add an issue." && exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "INSTALL ipfs-update >>>>>>>>>>>>>>>>>>>>>>>>>>"
|
if [ -f $MY_PATH/ipfs-update.tar.gz ]; then
|
||||||
sudo tar -xvzf $MY_PATH/ipfs-update.tar.gz -C /usr/src/ || err "Untar ipfs-update"
|
echo "INSTALL ipfs-update >>>>>>>>>>>>>>>>>>>>>>>>>>"
|
||||||
rm $MY_PATH/ipfs-update.tar.gz
|
sudo tar -xvzf $MY_PATH/ipfs-update.tar.gz -C /usr/src/ || err "Untar ipfs-update"
|
||||||
cd /usr/src/ipfs-update/
|
rm $MY_PATH/ipfs-update.tar.gz
|
||||||
sudo ./install.sh || err "Install ipfs-update"
|
cd /usr/src/ipfs-update/
|
||||||
cd $MY_PATH
|
sudo ./install.sh || err "Install ipfs-update"
|
||||||
|
cd $MY_PATH
|
||||||
|
|
||||||
echo "INSTALL ipfs 0.7.0 >>>>>>>>>>>>>>>>>>>>>>>>>>"
|
echo "INSTALL ipfs 0.7.0 >>>>>>>>>>>>>>>>>>>>>>>>>>"
|
||||||
sudo ipfs-update install 0.7.0 || err "Install IPFS"
|
sudo ipfs-update install 0.7.0 || err "Install IPFS"
|
||||||
|
else
|
||||||
|
## TERRAPI4 aarch64 install ipfs_aarch64_v0.9.1
|
||||||
|
sudo tar -xvzf /tmp/ipfs_aarch64_v0.9.1.tar.gz -C /usr/src/ || err "Untar ipfs_aarch64"
|
||||||
|
rm /tmp/ipfs_aarch64_v0.9.1.tar.gz
|
||||||
|
cd /usr/src/go-ipfs/
|
||||||
|
sudo ./install.sh || err "Install ipfs_aarch64"
|
||||||
|
cd $MY_PATH
|
||||||
|
fi
|
||||||
|
|
||||||
# INIT ipfs
|
# INIT ipfs
|
||||||
[[ $isLAN ]] && ipfs init -p lowpower \
|
[[ $isLAN ]] && ipfs init -p lowpower \
|
||||||
|
@ -109,8 +120,8 @@ ipfs config Datastore.StorageMax $diskSize
|
||||||
## Activate Rapid "ipfs p2p"
|
## Activate Rapid "ipfs p2p"
|
||||||
ipfs config --json Experimental.Libp2pStreamMounting true
|
ipfs config --json Experimental.Libp2pStreamMounting true
|
||||||
ipfs config --json Experimental.P2pHttpProxy true
|
ipfs config --json Experimental.P2pHttpProxy true
|
||||||
ipfs config --json Swarm.ConnMgr.LowWater 200
|
ipfs config --json Swarm.ConnMgr.LowWater 60
|
||||||
ipfs config --json Swarm.ConnMgr.HighWater 400
|
ipfs config --json Swarm.ConnMgr.HighWater 180
|
||||||
######### CLEAN DEFAULT BOOTSTRAP TO STAY INVISIBLE ###########
|
######### CLEAN DEFAULT BOOTSTRAP TO STAY INVISIBLE ###########
|
||||||
ipfs bootstrap rm --all
|
ipfs bootstrap rm --all
|
||||||
###########################################
|
###########################################
|
||||||
|
|
Loading…
Reference in New Issue