diff --git a/crowdbunker.sh b/crowdbunker.sh index 3a6edbd..2f93ed7 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -284,22 +284,22 @@ echo "########################################################################## InHere=$(cat ~/.zen/bunkerbox/history.qo-op.json | jq .Videos[].link | grep $VUID) if [[ ! $InHere ]]; then echo "BunkerBOX - NOUVELLE VIDEO - Mise à jour homepage & dynamic history(s).json" - mkdir -p ~/.zen/bunkerbox/qo-op/ + mkdir -p ~/.zen/bunkerbox/homepage/ ## This is the welcome page of your qo-op channel. # Could be redirect, or ... Your homepage is introduced there !! - # echo "" > ~/.zen/bunkerbox/qo-op/index.html - # echo "" > ~/.zen/bunkerbox/qo-op/index.html - cp -R ${MY_PATH}/templates/styles ~/.zen/bunkerbox/qo-op/ - cp -R ${MY_PATH}/templates/js ~/.zen/bunkerbox/qo-op/ - cp ${MY_PATH}/templates/homepage.html ~/.zen/bunkerbox/qo-op/index.html - cp ${MY_PATH}/templates/crowbunkerbox.png ~/.zen/bunkerbox/qo-op/ - sed -i "s~_IPNSL_~$IPNSL~g" ~/.zen/bunkerbox/qo-op/index.html + # echo "" > ~/.zen/bunkerbox/homepage/index.html + # echo "" > ~/.zen/bunkerbox/homepage/index.html + cp -R ${MY_PATH}/templates/styles ~/.zen/bunkerbox/homepage/ + cp -R ${MY_PATH}/templates/js ~/.zen/bunkerbox/homepage/ + cp ${MY_PATH}/templates/homepage.html ~/.zen/bunkerbox/homepage/index.html + cp ${MY_PATH}/templates/crowbunkerbox.png ~/.zen/bunkerbox/homepage/ + sed -i "s~_IPNSL_~$IPNSL~g" ~/.zen/bunkerbox/homepage/index.html - cp ~/.zen/bunkerbox/history.json ~/.zen/bunkerbox/qo-op/history.json - cp ~/.zen/bunkerbox/history.${CHANNEL}.json ~/.zen/bunkerbox/qo-op/history.${CHANNEL}.json - echo "$TS" > ~/.zen/bunkerbox/qo-op/ts # TimeStamping - echo "Adding ~/.zen/bunkerbox/qo-op/* to IPFS " - VROOT=$(ipfs add -rwHq ~/.zen/bunkerbox/qo-op/* | tail -n 1) + cp ~/.zen/bunkerbox/history.json ~/.zen/bunkerbox/homepage/history.json + cp ~/.zen/bunkerbox/history.${CHANNEL}.json ~/.zen/bunkerbox/homepage/history.${CHANNEL}.json + echo "$TS" > ~/.zen/bunkerbox/homepage/ts # TimeStamping + echo "Adding ~/.zen/bunkerbox/homepage/* to IPFS " + VROOT=$(ipfs add -rwHq ~/.zen/bunkerbox/homepage/* | tail -n 1) echo "'qo-op' update with /ipfs/$VROOT" ipfs name publish --key=qo-op /ipfs/$VROOT echo "HOME : $IPFSNGW/ipns/$IPNS/"