diff --git a/zen/gchange_IPFS_swarm.sh b/zen/gchange_IPFS_swarm.sh index c7b62d0..2202dcf 100755 --- a/zen/gchange_IPFS_swarm.sh +++ b/zen/gchange_IPFS_swarm.sh @@ -32,11 +32,15 @@ echo $(date) ######################################################################## # Let's look for Friends and "IPFS swarm connect" with them ######################################################################## +rm -f /tmp/liking_me ## FILE WILL BE REFRESHED # Check liking_me station in my swarm FRIENDS for swarm_frof in $(ls ~/.zen/ipfs_swarm/.*/FRIENDS/$G1PUB/stars.level | cut -d '/' -f 6 | cut -d '.' -f 2); ## FROM IPFS do liking_me=$(~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $swarm_frof) + ## PUBLISH /tmp/liking_me for ./tools/add_externIP_to_ipfstryme.sh + echo "$liking_me" >> /tmp/liking_me + do_I_like=$(ls ~/.zen/ipfs/.$IPFSNODEID/FRIENDS/$liking_me 2>/dev/null) # Get Gchange "liking_me" people list (made by gchange_INIT.sh) # [[ ! -f /tmp/liking_me ]] && ~/.zen/astrXbian/zen/tools/timeout.sh -t 12 ~/.zen/astrXbian/zen/jaklis/jaklis.py -k ~/.zen/secret.dunikey -n "https://data.gchange.fr" stars | jq -r '.likes[].issuer' > /tmp/liking_me.try && [ ! -s /tmp/liking_me.try ] && cp /tmp/liking_me.try /tmp/liking_me && rm /tmp/liking_me.try diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index 5b68a04..f066b7a 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -427,9 +427,9 @@ then fi -######################################################################## -# PUBLISH YOUTUBE video to /astroport/wordpress/ -######################################################################## +######################################################################### +# PUBLISH YOUTUBE video to /astroport/wordpress/ DATA NOT USED ANY MORE... semaphore à régler +######################################################################### if [[ "${CAT}" == "youtube" ]] then ## CREATE astroport call to Astroport/Wordpress stations