diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 1fa854e..7acb6f0 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -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