~/.zen/bunkerbox/homepage/

This commit is contained in:
fred 2022-04-08 18:37:55 +02:00
parent 597854adb0
commit 437edaeafc
1 changed files with 13 additions and 13 deletions

View File

@ -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 "<meta http-equiv=\"refresh\" content=\"0;URL=$INDEX\">" > ~/.zen/bunkerbox/qo-op/index.html
# echo "<meta http-equiv=\"refresh\" content=\"0;URL=$INDEX\">" > ~/.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 "<meta http-equiv=\"refresh\" content=\"0;URL=$INDEX\">" > ~/.zen/bunkerbox/homepage/index.html
# echo "<meta http-equiv=\"refresh\" content=\"0;URL=$INDEX\">" > ~/.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/"