forked from axiom-team/astroport
ipfs files ls /nextcloud
This commit is contained in:
parent
e5c15be7c2
commit
e3e4360a85
|
@ -4,13 +4,15 @@
|
|||
# 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
|
||||
# Find files from Passenger ZenTAG and publish to Nextcloud
|
||||
# Needs ipfslink decoding key contract can be run!!!
|
||||
################################################################################
|
||||
MY_PATH="`dirname \"$0\"`" # relative
|
||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||
ME="${0##*/}"
|
||||
|
||||
echo "BREAK POINT" && exit 1
|
||||
|
||||
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)
|
||||
|
@ -18,6 +20,17 @@ g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
|||
# ADDING A FILE
|
||||
# ipfs files cp /ipfs/<cid> /nextcloud/
|
||||
|
||||
# GET All #Swarm0 Passenger filenames
|
||||
cat ~/.zen/ipfs_swarm/.Qm*/TAG/*/_tag.passenger.filename > ~/.zen/cache/passengers.filename.list
|
||||
|
||||
|
||||
# Get ipns ZenTag link, open it
|
||||
for filename in $(cat ~/.zen/cache/passengers.filename.list); do
|
||||
INSWARM=$(grep -Rwl "$filename" ~/.zen/ipfs_swarm/.Qm*/TAG/*/_tag.passenger.filename | tail -n 1 | cut -f 6 -d '/')
|
||||
|
||||
done
|
||||
|
||||
|
||||
# ipfs files ls /nextcloud
|
||||
# ipfs files stat /nextcloud/filename
|
||||
|
||||
|
|
Loading…
Reference in New Issue