compatibiliy

This commit is contained in:
fred 2022-12-09 01:09:17 +01:00
parent 337e842c27
commit 155640fb2a
2 changed files with 7 additions and 5 deletions

View File

@ -86,14 +86,14 @@ echo 'PRESS ENTER... '; read
PLAYER=$fav PLAYER=$fav
pass=$(cat ~/.zen/game/players/.current/.pass 2>/dev/null) pass=$(cat ~/.zen/game/players/$PLAYER/.pass 2>/dev/null)
########################################## DEVEL ########################################## DEVEL
echo "Saisissez votre PASS -- UPGRADE CRYPTO FREELY -- $pass" && read PASS echo "Saisissez votre PASS -- UPGRADE CRYPTO FREELY -- $pass" && read PASS
## DECODE CURRENT PLAYER CRYPTO ## DECODE CURRENT PLAYER CRYPTO
# echo "********* DECODAGE SecuredSocketLayer *********" # echo "********* DECODAGE SecuredSocketLayer *********"
# rm -f ~/.zen/tmp/${PLAYER}.dunikey 2>/dev/null # rm -f ~/.zen/tmp/${PLAYER}.dunikey 2>/dev/null
# openssl enc -aes-256-cbc -d -in "$HOME/.zen/game/players/.current/enc.secret.dunikey" -out "$HOME/.zen/tmp/${PLAYER}.dunikey" -k $pass 2>&1>/dev/null # openssl enc -aes-256-cbc -d -in "$HOME/.zen/game/players/${PLAYER}/enc.secret.dunikey" -out "$HOME/.zen/tmp/${PLAYER}.dunikey" -k $pass 2>&1>/dev/null
[[ $PASS != $pass ]] && echo "ERROR. MAUVAIS PASS. EXIT" && exit 1 [[ $PASS != $pass ]] && echo "ERROR. MAUVAIS PASS. EXIT" && exit 1
rm -f ~/.zen/game/players/.current rm -f ~/.zen/game/players/.current
@ -111,7 +111,7 @@ echo "ENTREE ACCORDEE"
echo echo
ASTRONAUTENS=$(ipfs key list -l | grep -w "$PLAYER" | cut -d ' ' -f 1) ASTRONAUTENS=$(ipfs key list -l | grep -w "$PLAYER" | cut -d ' ' -f 1)
echo "$(cat ~/.zen/game/players/.current/.pseudo 2>/dev/null) TW/Moa" echo "$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null) TW/Moa"
echo "http://$myIP:8080/ipns/$ASTRONAUTENS" echo "http://$myIP:8080/ipns/$ASTRONAUTENS"
echo "Activation Réseau P2P Astroport !" echo "Activation Réseau P2P Astroport !"
@ -127,7 +127,7 @@ select fav in "${choices[@]}"; do
"EXPORTER VISA") "EXPORTER VISA")
echo "EXPORT IDENTITE ASTRONAUTE" echo "EXPORT IDENTITE ASTRONAUTE"
du -h ~/.zen/game/players/.current/ du -h ~/.zen/game/players/$PLAYER/
echo "MANUAL BACKUP ZIP ~/.zen/game/players/$PLAYER/" echo "MANUAL BACKUP ZIP ~/.zen/game/players/$PLAYER/"
## EXPORT TW + VOEUX IPNS KEYS ## EXPORT TW + VOEUX IPNS KEYS
@ -181,7 +181,7 @@ select fav in "${choices[@]}"; do
;; ;;
"IMPRIMER QRVOEU") "IMPRIMER QRVOEU")
${MY_PATH}/tools/VOEUX.print.sh ${MY_PATH}/tools/VOEUX.print.sh $PLAYER
;; ;;
"QUITTER") "QUITTER")

View File

@ -7,6 +7,8 @@ MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
ME="${0##*/}" ME="${0##*/}"
PLAYER=$1
[[ $PLAYER == "" ]] && PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null) [[ $PLAYER == "" ]] && PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null)
[[ $PLAYER == "" ]] && echo "PLAYER manquant" && exit 1 [[ $PLAYER == "" ]] && echo "PLAYER manquant" && exit 1
PSEUDO=$(cat ~/.zen/game/players/$PLAYER/.pseudo 2>/dev/null) PSEUDO=$(cat ~/.zen/game/players/$PLAYER/.pseudo 2>/dev/null)