1
0
Fork 0
astroport/zen/nextcloud_SWARM_share.sh

24 lines
886 B
Bash
Raw Normal View History

2020-05-03 23:37:47 +02:00
#!/bin/bash
################################################################################
# Author: Fred (support@qo-op.com)
# Version: 0.1
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
################################################################################
# Extract last ads
# Thank you @kimamila for cesium & gchange
# ES backend http://www.elasticsearchtutorial.com/spatial-search-tutorial.html
MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
ME="${0##*/}"
ipfsnodeid=$(ipfs id -f='<id>\n')
[[ ! -f ~/.ssb/secret.dunikey ]] && $MY_PATH/tools/secret2dunikey.sh
g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
2020-05-04 00:25:21 +02:00
# ipfs files ls /nextcloud
# ipfs files stat /nextcloud/filename
2020-05-03 23:37:47 +02:00
## LOG INTO SSB ??? TODO
# sbotc publish '{"type":"zenlog","text":"'"$ME"'"}'