Check if ARM, don't install patchwork

This commit is contained in:
poka 2020-06-08 13:53:32 +02:00
parent fdece33952
commit d68f9277d8
1 changed files with 16 additions and 11 deletions

View File

@ -17,7 +17,7 @@ echo '
############# '$MY_PATH/$ME' ############# '$MY_PATH/$ME'
######################################################################## ########################################################################
# Make Astroport Station Account # Make Astroport Station Account
# #
# You should already be runing ipfs daemon # You should already be runing ipfs daemon
######################################################################## ########################################################################
@ -340,18 +340,23 @@ sleep 10
#sleep 7 #sleep 7
# Intall Patchwork # Intall Patchwork
if [[ ! $(which ssb-patchwork) ]]; then #### ARM / X64 NOT USED THERE
wget https://github.com/ssbc/patchwork/releases/download/v3.18.0/ssb-patchwork_3.18.0_amd64.deb -O /tmp/patchwork.deb MACHINE_TYPE=`uname -m`
sudo dpkg -i /tmp/patchwork.deb [ ${MACHINE_TYPE:0:3} == 'arm' ] && isARM="YES"
sleep 1 if [[ ! $isARM="YES" ]]; then
rm /tmp/patchwork.deb if [[ ! $(which ssb-patchwork) ]]; then
wget https://github.com/ssbc/patchwork/releases/download/v3.18.0/ssb-patchwork_3.18.0_amd64.deb -O /tmp/patchwork.deb
sudo dpkg -i /tmp/patchwork.deb
sleep 1
rm /tmp/patchwork.deb
## npm install way ## npm install way
##npm install --global ssb-patchwork ##npm install --global ssb-patchwork
sleep 2 sleep 2
# Start Patchwork # Start Patchwork
#[[ $(which ssb-patchwork) ]] && ssb-patchwork || echo -e "${c_red}Patchwork is not installed$c_" #[[ $(which ssb-patchwork) ]] && ssb-patchwork || echo -e "${c_red}Patchwork is not installed$c_"
fi
fi fi
~/.zen/astroport/zen/ssb_INIT.sh ~/.zen/astroport/zen/ssb_INIT.sh