forked from STI/Astroport.ONE
WHo is President.?
This commit is contained in:
parent
4bafec2c6e
commit
4f0d1bd85d
|
@ -33,16 +33,20 @@ mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/
|
||||||
|
|
||||||
## Directory is created, So this script already run once.
|
## Directory is created, So this script already run once.
|
||||||
if [[ ! -d ~/.zen/game/players/${PLAYER}/FRIENDS/ ]]; then
|
if [[ ! -d ~/.zen/game/players/${PLAYER}/FRIENDS/ ]]; then
|
||||||
## GET GCHANGE
|
## GET GCHANGE PROFIL
|
||||||
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://data.gchange.fr" get > ~/.zen/game/players/${PLAYER}/ipfs/gchange.json
|
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://data.gchange.fr" get > ~/.zen/game/players/${PLAYER}/ipfs/gchange.json
|
||||||
|
|
||||||
NAME=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.title')
|
NAME=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.title')
|
||||||
[[ ! $NAME ]] && NAME="${PSEUDO}"
|
[[ ! $NAME || $NAME == "null" ]] && NAME="Astronaute ${PSEUDO}"
|
||||||
|
|
||||||
DESCR=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.description')
|
DESCR=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.description')
|
||||||
[[ ! $DESCR ]] && DESCR="Astronaute explorateur Ŋ1"
|
[[ ! $DESCR || $DESCR == "null" ]] && DESCR="Astronaute explorateur Ŋ1"
|
||||||
|
|
||||||
VILLE=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.city')
|
VILLE=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.city')
|
||||||
[[ ! $VILLE ]] && VILLE="Paris, 75012"
|
[[ ! $VILLE || $VILLE == "null" ]] && VILLE="Paris, 75012"
|
||||||
|
|
||||||
ADRESSE=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.address')
|
ADRESSE=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.address')
|
||||||
[[ ! $ADRESSE ]] && ADRESSE="Elysée"
|
[[ ! $ADRESSE || $ADRESSE == "null" ]] && ADRESSE="Elysée"
|
||||||
|
|
||||||
# POSITION=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.geoPoint')
|
# POSITION=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.geoPoint')
|
||||||
SITE=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.socials')
|
SITE=$(cat ~/.zen/game/players/${PLAYER}/ipfs/gchange.json | jq -r '.socials')
|
||||||
|
@ -53,7 +57,6 @@ if [[ ! -d ~/.zen/game/players/${PLAYER}/FRIENDS/ ]]; then
|
||||||
echo $MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://data.gchange.fr" set -n "${NAME}" -d "${DESCR}" -v "${VILLE}" -a "${ADRESSE}" -s "http://tube.copylaradio.com:8080/ipns/$ASTRONAUTENS" #GCHANGE+
|
echo $MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://data.gchange.fr" set -n "${NAME}" -d "${DESCR}" -v "${VILLE}" -a "${ADRESSE}" -s "http://tube.copylaradio.com:8080/ipns/$ASTRONAUTENS" #GCHANGE+
|
||||||
[[ ! $? == 0 ]] && echo "GCHANGE PROFILE CREATION FAILED"
|
[[ ! $? == 0 ]] && echo "GCHANGE PROFILE CREATION FAILED"
|
||||||
|
|
||||||
|
|
||||||
## GET CESIUM
|
## GET CESIUM
|
||||||
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://g1.data.presles.fr" get > ~/.zen/game/players/${PLAYER}/ipfs/cesium.json
|
$MY_PATH/jaklis/jaklis.py -k ~/.zen/game/players/${PLAYER}/secret.dunikey -n "https://g1.data.presles.fr" get > ~/.zen/game/players/${PLAYER}/ipfs/cesium.json
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|
|
@ -214,6 +214,7 @@ G1PUB=$(cat /tmp/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
||||||
CRYPTIP2=$(cat ~/.zen/tmp/MadeInZion.json | jq -r .[].secret)
|
CRYPTIP2=$(cat ~/.zen/tmp/MadeInZion.json | jq -r .[].secret)
|
||||||
echo "$CRYPTIP2" | base64 -d > ~/.zen/tmp/myIP.$G1PUB.enc.2
|
echo "$CRYPTIP2" | base64 -d > ~/.zen/tmp/myIP.$G1PUB.enc.2
|
||||||
rm -f ~/.zen/tmp/myIP.2
|
rm -f ~/.zen/tmp/myIP.2
|
||||||
|
echo "$MY_PATH/natools.py decrypt -f pubsec -k $HOME/.zen/game/players/$PLAYER/secret.dunikey -i $HOME/.zen/tmp/myIP.$G1PUB.enc.2 -o $HOME/.zen/tmp/myIP.2"
|
||||||
$MY_PATH/natools.py decrypt -f pubsec -k $HOME/.zen/game/players/$PLAYER/secret.dunikey -i $HOME/.zen/tmp/myIP.$G1PUB.enc.2 -o $HOME/.zen/tmp/myIP.2
|
$MY_PATH/natools.py decrypt -f pubsec -k $HOME/.zen/game/players/$PLAYER/secret.dunikey -i $HOME/.zen/tmp/myIP.$G1PUB.enc.2 -o $HOME/.zen/tmp/myIP.2
|
||||||
#
|
#
|
||||||
## CRYPTO PROCESS VALIDATED
|
## CRYPTO PROCESS VALIDATED
|
||||||
|
|
Loading…
Reference in New Issue