echo "SWARM CLEAN OK" > /tmp/swarm_cleaned

This commit is contained in:
qo-op 2021-02-17 15:25:35 +01:00
parent 4567ea327c
commit 0b3f85c0b3
1 changed files with 3 additions and 3 deletions

View File

@ -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