0.1r01
This commit is contained in:
parent
63a99cbf80
commit
99b7fd38de
|
@ -6,8 +6,8 @@ scuttlebutt() {
|
||||||
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
if [[ ! $where_is_ssb_installed ]]; then
|
if [[ ! $where_is_ssb_installed ]]; then
|
||||||
# BRUTAL WAY... TODO soften
|
# KILL the BRUTAL WAY...
|
||||||
killall node
|
kill -9 $(ps auxf --sort=+utime | grep -w ssb-server| grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
sudo apt-get install -y socat python3-dev libtool python3-setuptools autoconf automake
|
sudo apt-get install -y socat python3-dev libtool python3-setuptools autoconf automake
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ scuttlebutt() {
|
||||||
if [[ $extension == $nodename ]]; then
|
if [[ $extension == $nodename ]]; then
|
||||||
|
|
||||||
|
|
||||||
nodename=$nodename.home
|
nodename=$nodename.local
|
||||||
# LOCAL
|
# LOCAL
|
||||||
cat > ~/.ssb/config <<EOF
|
cat > ~/.ssb/config <<EOF
|
||||||
{
|
{
|
||||||
|
@ -169,8 +169,9 @@ __)|_| \ \/ |_| \ || || |_ ... SCUTTLEBUTT ... OK?
|
||||||
echo "YOU CAN CHOOSE ssb-daemon INSTEAD..."
|
echo "YOU CAN CHOOSE ssb-daemon INSTEAD..."
|
||||||
|
|
||||||
echo "ADD TO YOUR '/etc/rc.local' !!! "
|
echo "ADD TO YOUR '/etc/rc.local' !!! "
|
||||||
|
sleep $((1 + RANDOM % 5))
|
||||||
echo "LAUNCHING OASIS NODE MANAGER http://$nodename:3000"
|
echo "LAUNCHING OASIS NODE MANAGER http://$nodename:3000"
|
||||||
sbotc -t async manifest > ~/.ssb/manifest.json
|
sbotc -t async manifest > ~/.ssb/manifest.json
|
||||||
oasis --allow-host $nodename --host $nodename &
|
oasis --allow-host $nodename --host $nodename &
|
||||||
|
|
||||||
echo "TODO: Protect behind nginx redirect !!!"
|
echo "TODO: Protect behind nginx redirect !!!"
|
||||||
|
|
Loading…
Reference in New Issue