MACHINE_TYPE is not supported yet

This commit is contained in:
qo-op 2020-05-03 18:03:39 +02:00
parent 2706472e79
commit 4324c740dd
2 changed files with 16 additions and 2 deletions

View File

@ -10,16 +10,25 @@ if [ "$EUID" -eq 0 ]
else echo -e "${c_yellow}OK $USER, let's go!$c_"; else echo -e "${c_yellow}OK $USER, let's go!$c_";
fi fi
[[ -d ~/.ipfs ]] && echo "IPFS install exist, please remove backup before execute this script" && exit 1 [[ -d ~/.ipfs ]] && echo "IPFS install exist, please remove backup before execute this script" && exit 1
echo -e "${c_yellow}Onboarding IPFS...$c_" echo -e "${c_yellow}Onboarding IPFS...$c_"
[[ -f /usr/local/bin/ipfs ]] && sudo service ipfs stop [[ -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" 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 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 fi
echo "INSTALL ipfs-update" echo "INSTALL ipfs-update"

View File

@ -27,6 +27,11 @@ echo '
I encourage you to read any code you download. I encourage you to read any code you download.
This one is not perfect, but will not harm your system... 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 HIT ENTER TO CONTINUE
' '
read letsgo read letsgo