ACTIVATE CONTROL (UNCOMMENT THIS CODE AND protect history_qo-op.json corruption the way you want to (*white or black listing)

This commit is contained in:
fred 2022-04-16 10:56:15 +02:00
parent c41f3b2db7
commit b84e3e59f2
1 changed files with 12 additions and 0 deletions

View File

@ -328,7 +328,19 @@ echo "##########################################################################
cp ~/.zen/bunkerbox/history.json ~/.zen/bunkerbox/homepage/history.json
cp ~/.zen/bunkerbox/calendar.json ~/.zen/bunkerbox/homepage/calendar.json
cp ~/.zen/bunkerbox/history.${CHANNEL}.json ~/.zen/bunkerbox/homepage/history.${CHANNEL}.json
## ACTIVATE CONTROL (UNCOMMENT THIS CODE AND protect history_qo-op.json corruption the way you want to (*white or black listing)
mkdir -p ~/.zen/bunkerbox/homepage/time/
echo "$TS" > ~/.zen/bunkerbox/homepage/ts # TimeStamping
echo "$IPFSNODEID" > ~/.zen/bunkerbox/homepage/time/$TS # Put my Station ID into time/$TS for control #astrXbian (whitelist swarm control) or blacklisting extension here)
#
# BALISE=$(echo $TS | ipfs add -q)
# ipfs name publish $BALISE ##### $IPFSNODEID IS now confirming it recognizes this TS as last publishing !!
# TIME=$(ipfs cat /ipns/$IPNS/ts)
# WHO=$(ipfs cat /ipns/$IPNS/time/$TIME)
# ISTRUE=$(ipfs cat /ipns/$WHO)
# TIME == ISTRUE ? ####### Et voilà ;)
echo "Adding ~/.zen/bunkerbox/homepage/* to IPFS "
VROOT=$(ipfs add -rwHq ~/.zen/bunkerbox/homepage/* | tail -n 1)
echo "'qo-op' update with /ipfs/$VROOT"