From b234229937b4663b3cd96aa50f587858a21ff191 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 22 Apr 2022 14:20:36 +0200 Subject: [PATCH] AmIBootStrap ?? --- crowdbunker.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crowdbunker.sh b/crowdbunker.sh index 0776a3d..d341d71 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -219,9 +219,11 @@ echo "########################################################################## # REFRESH ${CHANNEL}'s HISTORY ~/.zen/bunkerbox/ cp ~/.zen/bunkerbox/cache/$VUID/media/history.${CHANNEL}.json ~/.zen/bunkerbox/history.${CHANNEL}.json + ######################### ######################### ######################### ## CONSTRUCT 'MOA' CHANNEL PUBLICATION ZONE ```rm -Rf ~/.zen/bunkerbox/channels/${CHANNEL} to reset``` - if [[ ! -f ~/.zen/bunkerbox/homepage/tw/${CHANNEL}/index.html ]]; then + AmIBootStrap=$(cat ~/.zen/astrXbian/A_boostrap_nodes.txt 2>/dev/null | grep $IPFSNODEID) + if [[ ! -f ~/.zen/bunkerbox/homepage/tw/${CHANNEL}/index.html && $AmIBootStrap ]]; then mkdir -p ~/.zen/bunkerbox/homepage/tw/${CHANNEL}/ mkdir -p ~/.zen/bunkerbox/channels/${CHANNEL}/ # New tiddlywiki with moa key