Enable oasis for ARM

This commit is contained in:
poka 2020-06-09 15:01:10 +02:00
parent d68f9277d8
commit 83f25350b1
1 changed files with 9 additions and 9 deletions

View File

@ -5,6 +5,10 @@ MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
ME="${0##*/}"
#### ARM / X64 NOT USED THERE
MACHINE_TYPE=`uname -m`
[ ${MACHINE_TYPE:0:3} == 'arm' ] && isARM="YES"
if [[ "$1" == "RAZ" ]]; then
echo "~/.SSB_ORIGIN is made for $(whoami)"
[[ -d ~/.ssb_$(whoami) ]] && mv ~/.ssb_$(whoami) ~/.SSB_ORIGIN
@ -334,16 +338,12 @@ ssb-server start &
sleep 10
##echo "Starting OASIS..."
## Don't ...
## oasis --allow-host $nodename --host $nodename &
#sleep 7
if [[ $isARM ]]; then
echo "Starting OASIS..."
oasis --allow-host $nodename --host $nodename &
sleep 7
else
# Intall Patchwork
#### ARM / X64 NOT USED THERE
MACHINE_TYPE=`uname -m`
[ ${MACHINE_TYPE:0:3} == 'arm' ] && isARM="YES"
if [[ ! $isARM="YES" ]]; then
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