IPNS link in each page
This commit is contained in:
parent
f1f0f30faf
commit
1681fb192b
|
@ -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
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
</center>
|
||||
|
||||
<h6>
|
||||
powered by <a href="https://astroport.com"><span>"</span>Astroport<span>"</span></a>
|
||||
<a href="_IPFSROOT__IPNS_"> _\/_ </a> powered by <a href="https://astroport.com"><span>"</span>Astroport<span>"</span></a>
|
||||
</h6>
|
||||
|
||||
</main>
|
||||
|
|
Loading…
Reference in New Issue