Browse Source

NO STAR NO FRIEND

master
qo-op 1 month ago
parent
commit
f9b9ddbd7b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      zen/manage_stargates.sh

+ 2
- 1
zen/manage_stargates.sh View File

@ -54,7 +54,7 @@ for friendgate in $(ls -d ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/*/); do
stars=$(cat ${friendgate}stars.level)
echo "OPENING $stars STARGATES with my friend $fg1pub"
[[ "$stars" == "" && "$fg1pub" != "" ]] && echo "NO STAR NO FRIEND" && rm -f ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/$fg1pub && continue
[[ "$stars" == "" && "$fg1pub" != "" ]] && echo "NO STAR NO FRIEND" && rm -Rf ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/$fg1pub && continue
# DELETE OLD TRANSMITED STARGATES IPNS LINKS
rm -f ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/$fg1pub/stargate*
@ -87,6 +87,7 @@ for friendgate in $(ls -d ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/*/); do
$MY_PATH/tools/natools.py encrypt -p $fg1pub -i ~/.zen/key/5/stargate -o "~/.zen/ipfs/.$IPFSNODEID/FRIENDS/$fg1pub/stargate5.encrypt"
;;
esac
ls ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/$fg1pub/
echo "http://127.0.0.1:8181/.$IPFSNODEID/FRIENDS/$fg1pub/ stargate refresh done"
done


Loading…
Cancel
Save