diff --git a/zen/ipfs_SWARM_refresh.sh b/zen/ipfs_SWARM_refresh.sh index 817dc42..9b628d6 100755 --- a/zen/ipfs_SWARM_refresh.sh +++ b/zen/ipfs_SWARM_refresh.sh @@ -32,10 +32,10 @@ _|_| | __) __)\/\//--\| \| | | \|_| | \|___)| | echo "I am $IPFSNODEID" timestamp=$(date -u +%s%N | cut -b1-13) +######################################################################## # Delete "ipfs_swarm" if file structure is evolving... or online only mode -#echo "FORGET /home/$YOU/.zen/ipfs_swarm/ from my SWARM peers" -# rm -Rf /home/$YOU/.zen/ipfs_swarm/.* -# rm -Rf /home/$YOU/.zen/ipfs_swarm/* +[[ ! -f /tmp/swarm_cleaned ]] && rm -Rf /home/$YOU/.zen/ipfs_swarm/ && mkdir -p /home/$YOU/.zen/ipfs_swarm && echo "SWARM CLEAN OK" > /tmp/swarm_cleaned +######################################################################## rm /tmp/treated.ipfs.swarm touch /tmp/treated.ipfs.swarm