forked from axiom-team/astroport
coma , bug
This commit is contained in:
parent
22add45e12
commit
a62f185a2d
|
@ -46,7 +46,9 @@ g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
||||||
# GET NODE disk performance. TODO, publish and use as IPFS repartition
|
# GET NODE disk performance. TODO, publish and use as IPFS repartition
|
||||||
diskperf=$(dd if=/dev/zero of=~/test.disk bs=10M count=1 oflag=dsync 2>&1 | tail -n 1)
|
echo "PERFORMANCE TESTING"
|
||||||
|
[[ -f ~/.zen/test.disk ]] && rm -f ~/.zen/test.disk
|
||||||
|
diskperf=$(dd if=/dev/zero of=~/.zen/test.disk bs=10M count=1 oflag=dsync 2>&1 | tail -n 1 | sed s/\,/\ -/g | cut -d '-' -f 4)
|
||||||
|
|
||||||
# IPFS LOCAL REPOSITORY for Node Identity G1 + SSB
|
# IPFS LOCAL REPOSITORY for Node Identity G1 + SSB
|
||||||
mkdir -p ~/.zen/ipfs/.$ipfsnodeid/G1SSB
|
mkdir -p ~/.zen/ipfs/.$ipfsnodeid/G1SSB
|
||||||
|
@ -60,9 +62,9 @@ sbotc publish '{"type":"ipfstryme","text":"'"$(ipfs id | jq -r .Addresses[] | ta
|
||||||
CESIUM="https://g1.data.le-sou.org"
|
CESIUM="https://g1.data.le-sou.org"
|
||||||
|
|
||||||
[[ -f ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_uidna ]] && uidna=$(cat ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_uidna)
|
[[ -f ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_uidna ]] && uidna=$(cat ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_uidna)
|
||||||
[[ ! $uidna ]] && title=$(curl -s ${CESIUM}/user/profile/${g1pub} | jq '._source.title') || title="Station $uidna"
|
[[ ! $uidna ]] && title=$(curl -s ${CESIUM}/user/profile/${g1pub} | jq -r '._source.title') || title="Station $uidna"
|
||||||
[[ $title == null ]] && title="Station $USER@$(cat /etc/hostname)"
|
[[ $title == null ]] && title="Station $USER@$(cat /etc/hostname)"
|
||||||
city=$(curl -s ${CESIUM}/user/profile/${g1pub} | jq '._source.city')
|
city=$(curl -s ${CESIUM}/user/profile/${g1pub} | jq -r '._source.city')
|
||||||
[[ $city != null ]] && title="$title in $city"
|
[[ $city != null ]] && title="$title in $city"
|
||||||
|
|
||||||
geopointlat=$(curl -s ${CESIUM}/user/profile/${g1pub} | jq '._source.geoPoint.lat')
|
geopointlat=$(curl -s ${CESIUM}/user/profile/${g1pub} | jq '._source.geoPoint.lat')
|
||||||
|
@ -99,12 +101,12 @@ echo "
|
||||||
/--\|_)(_)|_||_ : PUBLISH to SSB feed...
|
/--\|_)(_)|_||_ : PUBLISH to SSB feed...
|
||||||
|
|
||||||
$ssbpub
|
$ssbpub
|
||||||
image: $id / $type / $size
|
image: $id : $type : $size bits
|
||||||
|
|
||||||
"
|
"
|
||||||
# sbot publish --type about --about $ssbpub --description "[Astroport Node](https://astroport.com) [$ipfsnodeid](http://localhost:8080/ipns/$ipfsnodeid) - Wallet $g1pub - $diskperf" --name "$title" --image "$id"
|
# sbot publish --type about --about $ssbpub --description "[Astroport Node](https://astroport.com) [$ipfsnodeid](http://localhost:8080/ipns/$ipfsnodeid) - Wallet $g1pub - $diskperf" --name "$title" --image "$id"
|
||||||
echo "sbotc publish \"{\"type\":\"about\",\"about\":\"$ssbpub\",\"description\":\"[Astroport Node](https://astroport.com) [$ipfsnodeid](http://localhost:8080/ipns/$ipfsnodeid) - Wallet $g1pub - $diskperf\",\"name\":\"$title\",\"image\":\"$id\"}\""
|
echo "sbotc publish \"{\"type\":\"about\",\"about\":\"$title\",\"description\":\"[Astroport Node](https://astroport.com) [$ipfsnodeid](http://localhost:8080/ipns/$ipfsnodeid) - Wallet $g1pub - $diskperf\",\"name\":\"$title\",\"image\":\"$id\"}\""
|
||||||
sbotc publish "{\"type\":\"about\",\"about\":\"$ssbpub\",\"description\":\"[Astroport Node](https://astroport.com) [$ipfsnodeid](http://localhost:8080/ipns/$ipfsnodeid) - Wallet $g1pub - $diskperf\",\"name\":\"$title\",\"image\":\"$id\"}"
|
sbotc publish "{\"type\":\"about\",\"about\":\"$title\",\"description\":\"[Astroport Node](https://astroport.com) [$ipfsnodeid](http://localhost:8080/ipns/$ipfsnodeid) - Wallet $g1pub - $diskperf\",\"name\":\"$title\",\"image\":\"$id\"}"
|
||||||
|
|
||||||
# REQUEST DUNITER G1 Wallet balance
|
# REQUEST DUNITER G1 Wallet balance
|
||||||
|
|
||||||
|
@ -143,6 +145,8 @@ ___ _ _ __
|
||||||
_|_| | __) (_|(_|(_|
|
_|_| | __) (_|(_|(_|
|
||||||
~/.zen/ipfs
|
~/.zen/ipfs
|
||||||
|
|
||||||
|
ipfs ls /ipns/$ipfsnodeid
|
||||||
|
|
||||||
"
|
"
|
||||||
# COPY NODE G1SSB ID to IPFS
|
# COPY NODE G1SSB ID to IPFS
|
||||||
echo "$ssbpub" > ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_ssb.whoami
|
echo "$ssbpub" > ~/.zen/ipfs/.$ipfsnodeid/G1SSB/_ssb.whoami
|
||||||
|
@ -160,7 +164,7 @@ IWALLETS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
|
||||||
NODEIPNS=$(ipfs name publish --allow-offline --quieter /ipfs/$IWALLETS)
|
NODEIPNS=$(ipfs name publish --allow-offline --quieter /ipfs/$IWALLETS)
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
ipfs ls /ipns/$ipfsnodeid
|
ipfs ls /ipns/$ipfsnodeid/.$ipfsnodeid/
|
||||||
_ _ _ _ _
|
_ _ _ _ _
|
||||||
(_)_ ____ _(_) |_ __ _| |_(_) ___ _ __
|
(_)_ ____ _(_) |_ __ _| |_(_) ___ _ __
|
||||||
| | _ \ \ / / | __/ _| | __| |/ _ \| _ \
|
| | _ \ \ / / | __/ _| | __| |/ _ \| _ \
|
||||||
|
|
Loading…
Reference in New Issue