From 319447f332f02f58f18f06b629b17b7f1cc02c3e Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 5 Dec 2020 02:10:53 +0100 Subject: [PATCH] NOT WORKING --- zen/ipfs_SWARM_refresh.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zen/ipfs_SWARM_refresh.sh b/zen/ipfs_SWARM_refresh.sh index d1104dc..62bfbad 100755 --- a/zen/ipfs_SWARM_refresh.sh +++ b/zen/ipfs_SWARM_refresh.sh @@ -8,6 +8,8 @@ MY_PATH="`dirname \"$0\"`" # relative MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized ME="${0##*/}" +## NOT WORKING !!! +exit 1 ######################################################################## # \\/// # qo-op @@ -66,7 +68,10 @@ do done; [[ $friend_of_mine != null && $ipfsadd == 0 ]] && echo "No ipfstryme message..." && echo "$liking_me" >> /tmp/A_liking_me_NO_ipfstryme.txt # 4. liking_me IS NOT a friend_of_mine!! - [[ $friend_of_mine == null ]] && echo "I am NOT LIKING $liking_me"; + [[ $friend_of_mine == null ]] && \ + echo "I am NOT LIKING $liking_me" && \ + rm -Rf /home/$YOU/.zen/ipfs_swarm/.$id && \ + liking_me_count=$((liking_me_count+1)) done @@ -85,7 +90,7 @@ do isMyFriend=$(grep -Rwl "$ssbID" /tmp/ssb-friends.txt) if [[ -f /tmp/ssb-friends.txt && ! $isMyFriend ]]; then echo "WARNING! $count IS NOT my SSB Friend !!! Check $ssbID" - rm -Rf /home/$YOU/.zen/ipfs_swarm/.$id + ipfs swarm disconnect $peer ipfs bootstrap rm $peer ## Send sbotc alert message