diff --git a/ISOconfig.sh b/ISOconfig.sh index d249a8b..47179e8 100755 --- a/ISOconfig.sh +++ b/ISOconfig.sh @@ -92,12 +92,15 @@ echo "INSTALL crypto identity in ~/.zen" timestamp=$(date -u +%s%N | cut -b1-13) [[ -f ~/.zen/secret.june ]] && mv ~/.zen/secret.june ~/.zen/secret.june.old.$timestamp mv /tmp/secret.june ~/.zen/secret.june +chmod 640 ~/.zen/secret.june [[ -f ~/.zen/secret.dunikey ]] && mv ~/.zen/secret.dunikey ~/.zen/secret.dunikey.old.$timestamp mv /tmp/secret.dunikey ~/.zen/secret.dunikey +chmod 640 ~/.zen/secret.dunikey [[ -f ~/.zen/secret.ipfs ]] && mv ~/.zen/secret.ipfs ~/.zen/secret.ipfs.old.$timestamp mv /tmp/secret.ipfs ~/.zen/secret.ipfs +chmod 640 ~/.zen/secret.ipfs #[[ -f ~/.ipfs/config ]] && mv ~/.ipfs/config ~/.ipfs/config.old.$timestamp mv /tmp/config.ipfs ~/.ipfs/config diff --git a/zen/ipfs_SWARM_refresh.sh b/zen/ipfs_SWARM_refresh.sh index 9b628d6..9225077 100755 --- a/zen/ipfs_SWARM_refresh.sh +++ b/zen/ipfs_SWARM_refresh.sh @@ -87,12 +87,6 @@ do echo "$ipfsnodeid" >> /tmp/treated.ipfs.swarm done - -######################################################################## -######################################################################## -echo "RETRIEVING MY OWN DATA FROM IPNS TO ~/.zen/ipfs_swarm" -ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$IPFSNODEID - ######################################################################## # REFRESH xbian Film Serie Anime ASTRXBIAN index ######################################################################## @@ -107,6 +101,11 @@ cat ~/.zen/ipfs_swarm/.*/astroport/kodi/vstream/${PREFIX}* | sort | uniq > ~/.ze PREFIX="A" cat ~/.zen/ipfs_swarm/.*/astroport/kodi/vstream/${PREFIX}* | sort | uniq > ~/.zen/ipfs/.${IPFSNODEID}/${PREFIX}ASTRXBIAN +######################################################################## +######################################################################## +echo "RETRIEVING MY OWN DATA FROM IPNS TO ~/.zen/ipfs_swarm" +ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$IPFSNODEID + # REFRESH IPNS SELF PUBLISH ######################################################################## ~/.zen/astrXbian/zen/ipns_self_publish.sh diff --git a/zen/new_file_in_astroport.sh b/zen/new_file_in_astroport.sh index a9f4a0e..b50a3ba 100755 --- a/zen/new_file_in_astroport.sh +++ b/zen/new_file_in_astroport.sh @@ -127,4 +127,4 @@ echo "--------------- KODI INDEX UPDATED ----------------------" echo "NEW $TYPE ($file) ADDED." echo "INDEX UPDATED : http://127.0.0.1:8181/ipns/${IPFSNODEID}/.${IPFSNODEID}/${PREFIX}ASTRXBIAN" -echo "VIDEO IPNS LINK : http://localhost:8181/ipns/$KEY" +echo "VIDEO IPNS LINK : http://localhost:8181/ipns/$KEY/$G1PUB/"