MACHINE_TYPE is not supported yet
This commit is contained in:
parent
2706472e79
commit
4324c740dd
|
@ -10,16 +10,25 @@ if [ "$EUID" -eq 0 ]
|
|||
else echo -e "${c_yellow}OK $USER, let's go!$c_";
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[[ -d ~/.ipfs ]] && echo "IPFS install exist, please remove backup before execute this script" && exit 1
|
||||
|
||||
echo -e "${c_yellow}Onboarding IPFS...$c_"
|
||||
[[ -f /usr/local/bin/ipfs ]] && sudo service ipfs stop
|
||||
|
||||
|
||||
if [[ $ARM == "yes" ]]; then
|
||||
MACHINE_TYPE=`uname -m`
|
||||
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
|
||||
wget https://dist.ipfs.io/ipfs-update/v1.5.2/ipfs-update_v1.5.2_linux-amd64.tar.gz -O $MY_PATH/ipfs-update.tar.gz || err+="Download ipfs-update"
|
||||
elif [ ${MACHINE_TYPE:0:3} == 'arm' ];
|
||||
wget https://dist.ipfs.io/ipfs-update/v1.5.2/ipfs-update_v1.5.2_linux-arm.tar.gz -O $MY_PATH/ipfs-update.tar.gz || err+="Download ipfs-update"
|
||||
else
|
||||
wget https://dist.ipfs.io/ipfs-update/v1.5.2/ipfs-update_v1.5.2_linux-amd64.tar.gz -O $MY_PATH/ipfs-update.tar.gz || err+="Download ipfs-update"
|
||||
echo "Your $MACHINE_TYPE is not supported yet... Please add an issue."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "INSTALL ipfs-update"
|
||||
|
|
|
@ -27,6 +27,11 @@ echo '
|
|||
I encourage you to read any code you download.
|
||||
This one is not perfect, but will not harm your system...
|
||||
|
||||
Install IPFS (compatible with ARM and X64)
|
||||
curl -s https://git.p2p.legal/axiom-team/astroport/raw/master/.install/ipfs_alone.sh -o /tmp/ipfsA.sh
|
||||
chmod +x /tmp/ipfsA.sh
|
||||
/tmp/ipfsA.sh
|
||||
|
||||
HIT ENTER TO CONTINUE
|
||||
'
|
||||
read letsgo
|
||||
|
|
Loading…
Reference in New Issue