From 99b7fd38de0b206ea2fb7315f795a6992f5f7469 Mon Sep 17 00:00:00 2001 From: qo-op Date: Thu, 30 Apr 2020 01:21:38 +0200 Subject: [PATCH] 0.1r01 --- .install/scuttlebutt.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.install/scuttlebutt.sh b/.install/scuttlebutt.sh index 42a47a4..876e000 100755 --- a/.install/scuttlebutt.sh +++ b/.install/scuttlebutt.sh @@ -6,8 +6,8 @@ scuttlebutt() { BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" if [[ ! $where_is_ssb_installed ]]; then - # BRUTAL WAY... TODO soften - killall node + # KILL the BRUTAL WAY... + kill -9 $(ps auxf --sort=+utime | grep -w ssb-server| grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}') # Install dependencies sudo apt-get install -y socat python3-dev libtool python3-setuptools autoconf automake @@ -65,7 +65,7 @@ scuttlebutt() { if [[ $extension == $nodename ]]; then - nodename=$nodename.home + nodename=$nodename.local # LOCAL cat > ~/.ssb/config < ~/.ssb/manifest.json + sbotc -t async manifest > ~/.ssb/manifest.json oasis --allow-host $nodename --host $nodename & echo "TODO: Protect behind nginx redirect !!!"