UPLANET HOME LINK REPLACEMENT
This commit is contained in:
parent
b0f385bd5d
commit
271f4b6b8f
3
12345.sh
3
12345.sh
|
@ -99,6 +99,9 @@ while true; do
|
|||
[ -z "$isLAN" ] \
|
||||
&& sed -i -e "s~http://${myIP}:${PORT}~${myASTROPORT}/${PORT}~g" ~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
||||
|
||||
## UPLANET HOME LINK REPLACEMENT
|
||||
sed -i -e "s~https://ipfs.copylaradio.com/ipns/copylaradio.com~${myUPLANET}~g" ~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
||||
|
||||
############################################################################
|
||||
## SERVE LANDING REDIRECT PAGE ~/.zen/tmp/coucou/${MOATS}.myHOST.http on PORT 1234 (LOOP BLOCKING POINT)
|
||||
############################################################################
|
||||
|
|
|
@ -216,8 +216,10 @@ do
|
|||
echo "LIKING with ${my_star_level} stars : Friend Ŋ1 SCORE $gscore "
|
||||
mkdir -p ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}
|
||||
|
||||
cp ~/.zen/tmp/${IPFSNODEID}/GCHANGE/${PLAYER}/${liking_me}.Gstars.json ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/ && rm -f ~/.zen/tmp/${IPFSNODEID}/GCHANGE/${PLAYER}/${liking_me}.Gstars.json
|
||||
echo "${my_star_level}" > ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/stars.level && echo "***** ${my_star_level} STARS *****"
|
||||
cp ~/.zen/tmp/${IPFSNODEID}/GCHANGE/${PLAYER}/${liking_me}.Gstars.json ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/
|
||||
echo "${my_star_level}" > ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/stars.level ## LOCAL
|
||||
echo "${my_star_level}" > ~/.zen/tmp/${IPFSNODEID}/GCHANGE/${PLAYER}/${liking_me}.stars.level ## SWARM
|
||||
echo "***** ${my_star_level} STARS *****"
|
||||
|
||||
## GET FRIEND GCHANGE PROFILE
|
||||
echo "GET FRIEND gchange.json"
|
||||
|
@ -225,6 +227,9 @@ do
|
|||
${MY_PATH}/jaklis/jaklis.py get \
|
||||
-p ${liking_me} > ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/gchange.json
|
||||
|
||||
cp ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/gchange.json \
|
||||
~/.zen/tmp/${IPFSNODEID}/GCHANGE/${PLAYER}/${liking_me}.gchange.json
|
||||
|
||||
FRIENDTITLE=$(cat ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/gchange.json | jq -r '.title')
|
||||
|
||||
## GET FRIEND TW !!
|
||||
|
@ -329,6 +334,9 @@ do
|
|||
friend_of_friend=$(cat ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/${liking_me}.Gstars.json | jq -r '.likes[] | select(.issuer | strings | test("'$nid'"))')
|
||||
echo "$friend_of_friend" | jq -r > ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/FoF_$nid.json
|
||||
|
||||
cp ~/.zen/game/players/${PLAYER}/FRIENDS/${liking_me}/FoF_$nid.json \
|
||||
~/.zen/tmp/${IPFSNODEID}/GCHANGE/${PLAYER}/${liking_me}.FoF_$nid.json
|
||||
|
||||
done
|
||||
|
||||
else
|
||||
|
|
|
@ -509,7 +509,7 @@ Vos Secrets :
|
|||
* WALLET : https://cesium.app
|
||||
* MARKET : https://gchange.fr
|
||||
|
||||
U Planet : https://ipfs.copylaradio.com/ipns/copylaradio.com
|
||||
U Planet : ${myUPLANET}
|
||||
Astroport.ONE ★ PKI ★ Ğ1/Ŋ1 ★ DAO ★ Libre ★"; # sleep 1
|
||||
|
||||
echo
|
||||
|
|
|
@ -400,6 +400,8 @@ myIP="$(myIp)" # "127.0.0.1"
|
|||
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
|
||||
isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/")
|
||||
|
||||
myUPLANET="https://ipfs.copylaradio.com/ipns/copylaradio.com"
|
||||
|
||||
myASTROPORT="http://astroport.localhost:1234"
|
||||
myASTRONEF="http://astroport.localhost:1234"
|
||||
myAPI="http://${myIP}:5001"
|
||||
|
|
Loading…
Reference in New Issue