reset history_qo-op.json & search already copied video in ~/.zen/bunkerbox/history_*.json
This commit is contained in:
parent
5b6acb389f
commit
851b6c77e8
|
@ -43,6 +43,12 @@ if [[ ! -f ~/.zen/bunkerbox/history_${hier}.json && -f ~/.zen/bunkerbox/homepage
|
||||||
|
|
||||||
[[ "$(cat ~/.zen/tmp/calendar.json)" == "" ]] && echo "NO calendar.json FATAL ERROR" && exit 1
|
[[ "$(cat ~/.zen/tmp/calendar.json)" == "" ]] && echo "NO calendar.json FATAL ERROR" && exit 1
|
||||||
cp ~/.zen/tmp/calendar.json ~/.zen/bunkerbox/calendar.json
|
cp ~/.zen/tmp/calendar.json ~/.zen/bunkerbox/calendar.json
|
||||||
|
|
||||||
|
# RESET IPNS HISTORY FILE ( reset history_qo-op.json )
|
||||||
|
cp ${MY_PATH}/templates/data/history.json ~/.zen/bunkerbox/homepage/history.json
|
||||||
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## GET LATEST VIDEOS
|
## GET LATEST VIDEOS
|
||||||
|
@ -301,7 +307,7 @@ echo "##########################################################################
|
||||||
echo "Chaine Vidéo 'qo-op' => $IPFSNGW/ipns/$IPNS"
|
echo "Chaine Vidéo 'qo-op' => $IPFSNGW/ipns/$IPNS"
|
||||||
echo
|
echo
|
||||||
##### NEW HOMEPAGE / NEW DYNAMIC DATA ###### HERE TIMESTAMPING IS OK
|
##### NEW HOMEPAGE / NEW DYNAMIC DATA ###### HERE TIMESTAMPING IS OK
|
||||||
InHere=$(cat ~/.zen/bunkerbox/history_qo-op.json | jq .Videos[].link | grep $VUID)
|
InHere=$(cat ~/.zen/bunkerbox/history_*.json | jq .Videos[].link | grep $VUID)
|
||||||
if [[ ! $InHere ]]; then
|
if [[ ! $InHere ]]; then
|
||||||
echo "BunkerBOX - NOUVELLE VIDEO - Mise à jour homepage & dynamic history(s).json"
|
echo "BunkerBOX - NOUVELLE VIDEO - Mise à jour homepage & dynamic history(s).json"
|
||||||
mkdir -p ~/.zen/bunkerbox/homepage/
|
mkdir -p ~/.zen/bunkerbox/homepage/
|
||||||
|
|
Loading…
Reference in New Issue