From 1681fb192b62b7963cc0ff5976024260158de9d2 Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 7 Apr 2022 11:42:42 +0200 Subject: [PATCH] IPNS link in each page --- crowdbunker.sh | 5 ++++- templates/videojs.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crowdbunker.sh b/crowdbunker.sh index 1040558..8ec4ca7 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -110,7 +110,9 @@ echo "########################################################################## # Add current/latest common history reversed if [[ -f ~/.zen/bunkerbox/history.json ]]; then # qo-op get latest history.json - [[ "$(cat ~/.zen/bunkerbox/choice)"=="qo-op" ]] && ipfs get -o ~/.zen/bunkerbox/history.qo-op.json /ipns/$(cat ~/.zen/bunkerbox/qo-op)/history.json + [[ "$(cat ~/.zen/bunkerbox/choice)"=="qo-op" ]] && IPNSL="/ipns/$(cat ~/.zen/bunkerbox/qo-op)" && ipfs get -o ~/.zen/bunkerbox/history.qo-op.json $IPNSL/history.json || IPNSL="/" + # [[ $(cat ~/.zen/bunkerbox/history.qo-op.json | jq .Videos[].link | grep $VUID) ]] && echo "Video déjà dans history" && continue + # FUSION/REPLACEMENT WHAT TODO ? ## echo '{ @@ -128,6 +130,7 @@ echo "########################################################################## # sed -i s/_DATE_/$(date -u "+%Y-%m-%d#%H:%M:%S")/g ~/.zen/bunkerbox/$VUID/media/index.html # Different Copy Makes Different Chains ! sed -i "s~_TITLE_~$TITLE~g" ~/.zen/bunkerbox/$VUID/media/index.html sed -i "s~_CHANNEL_~$CHANNEL~g" ~/.zen/bunkerbox/$VUID/media/index.html + sed -i "s~_IPNSL_~$IPNSL~g" ~/.zen/bunkerbox/$VUID/media/index.html #MAJ IPNS link echo ">>>>> ADDING TO IPFS : ipfs add -rwH ~/.zen/bunkerbox/$VUID/media/* " echo diff --git a/templates/videojs.html b/templates/videojs.html index 46ef205..a2e9d15 100644 --- a/templates/videojs.html +++ b/templates/videojs.html @@ -46,7 +46,7 @@
- powered by "Astroport" + _\/_ powered by "Astroport"