From b84e3e59f29bf5145a59a107747676fed3c0ebef Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 16 Apr 2022 10:56:15 +0200 Subject: [PATCH] ACTIVATE CONTROL (UNCOMMENT THIS CODE AND protect history_qo-op.json corruption the way you want to (*white or black listing) --- crowdbunker.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crowdbunker.sh b/crowdbunker.sh index d37e5ea..d11915b 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -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"