install & invite
This commit is contained in:
parent
8745f21fad
commit
dd70bc62ef
|
@ -88,7 +88,11 @@ cat > ~/.zen/run-ssb_server.sh <<EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo _$ > ~/.zen/ssb.pid.bash
|
echo _$ > ~/.zen/ssb.pid.bash
|
||||||
while true; do
|
while true; do
|
||||||
ssb-server start
|
ssb-server start
|
||||||
|
# IF ANY PROBLEM CHANGE TO
|
||||||
|
# ssb-daemon
|
||||||
|
# MANAGE WITH OASIS http://$nodename:3000
|
||||||
|
# oasis --allow-host $nodename --host $nodename
|
||||||
echo _! > ~/.zen/ssb.pid
|
echo _! > ~/.zen/ssb.pid
|
||||||
done
|
done
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -83,6 +83,8 @@ while read gate; do
|
||||||
fi
|
fi
|
||||||
done <<<$(echo "$apps" | sed -n 1'p' | tr ',' '\n')
|
done <<<$(echo "$apps" | sed -n 1'p' | tr ',' '\n')
|
||||||
|
|
||||||
|
## CREATE G1SSB account
|
||||||
|
$PATH/zen/tools/make_G1SSB_secret.sh
|
||||||
|
|
||||||
## Run init scipts
|
## Run init scipts
|
||||||
$PATH/zen/ssb_IPFS_swarm.sh
|
$PATH/zen/ssb_IPFS_swarm.sh
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
# Explication de la machinerie.
|
||||||
|
|
||||||
|
Each IPFS Node publish on it's onw IPFS address ~/.zen/ipfs directory.
|
||||||
|
It contains per channel/wallets credentials and properties (each unique).
|
||||||
|
.Qm*** sub directory is used for exchanging messages between peers
|
||||||
|
SSB is the source of the gossip ipfs swarm structure
|
||||||
|
|
||||||
|
Blob can accept commands from the differents channels it manages.
|
||||||
|
|
||||||
|
IMPORTANT TODO!!
|
||||||
|
timeout.sh CPU problem to investigate
|
||||||
|
|
||||||
# IPFS FILESYSTEM STRUCTURE
|
# IPFS FILESYSTEM STRUCTURE
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
invite="${1?invite}"
|
||||||
|
code="${invite##*~}"
|
||||||
|
addr="${invite%%~*}"
|
||||||
|
feed="${addr##*:}"
|
||||||
|
hostname="${addr%:*}"
|
||||||
|
host="${hostname%:*}"
|
||||||
|
port="${hostname##*:}"
|
||||||
|
|
||||||
|
out="$(sbotc -s "$host" -p "$port" -k "$feed" -K "$code" -t async invite.use {} 2>&1)"
|
||||||
|
if echo "$out" | grep -q 'feed to follow is missing'
|
||||||
|
then
|
||||||
|
echo success
|
||||||
|
else
|
||||||
|
echo fail
|
||||||
|
echo "$out"
|
||||||
|
sbotc -s "$host" -p "$port" -k "$feed" -K "$code" -t source blobs.get ''
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue