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