diff --git a/ASTROBOT/PLAYER.refresh.sh b/ASTROBOT/PLAYER.refresh.sh index d49393e4..dceab16c 100755 --- a/ASTROBOT/PLAYER.refresh.sh +++ b/ASTROBOT/PLAYER.refresh.sh @@ -117,14 +117,6 @@ isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|( echo "# TUBE as 8080 & 5001" TUBE=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 3) - #################### - echo "# CRYPTO ENCODING $GWIP -> CRYPTIP" - echo $GWIP > ~/.zen/tmp/GWIP - $MY_PATH/../tools/natools.py encrypt -p $G1PUB -i $HOME/.zen/tmp/GWIP -o $HOME/.zen/tmp/myIP.$G1PUB.enc - CRYPTIP=$(cat ~/.zen/tmp/myIP.$G1PUB.enc | base16) - ## WRITE CRYPTIP into MadeInZion tiddler - sed -i "s~$SECRET~$CRYPTIP~g" ~/.zen/tmp/MadeInZion.json - ########################### # Modification Tiddlers de contrĂ´le de GW & API echo '[{"title":"$:/ipfs/saver/api/http/localhost/5001","tags":"$:/ipfs/core $:/ipfs/saver/api","text":"http://ipfs.localhost:5001"}]' > ~/.zen/tmp/5001.json @@ -134,9 +126,9 @@ isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|( echo '[{"title":"$:/plugins/astroport/lightbeams/state/subscriptions","tags":"","text":""}]' > ~/.zen/tmp/friends.json tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html \ - --import "$HOME/.zen/tmp/MadeInZion.json" "application/json" \ --import "$HOME/.zen/tmp/5001.json" "application/json" \ --import "$HOME/.zen/tmp/8080.json" "application/json" \ + --import "$HOME/.zen/tmp/friends.json" "application/json" \ --output ~/.zen/tmp/${IPFSNODEID}/${PLAYER} --render "$:/core/save/all" "newindex.html" "text/plain" [[ -s ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/newindex.html ]] \