From 41512e46728dffc8fe691d7b76a8b02191c4e37e Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 23 Aug 2022 14:44:43 +0200 Subject: [PATCH] ASTRO enters SALT PEPPER gets back online TW --- tools/VISA.new.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/VISA.new.sh b/tools/VISA.new.sh index da87b487..87ab4588 100755 --- a/tools/VISA.new.sh +++ b/tools/VISA.new.sh @@ -23,15 +23,15 @@ if [[ $SALT != "" && PEPPER != "" ]]; then ${MY_PATH}/keygen -t ipfs -o ~/.zen/tmp/gchange.key "$SALT" "$PEPPER" GNS=$(ipfs key import gchange -f pem-pkcs8-cleartext ~/.zen/tmp/gchange.key ) - rm -f ~/.zen/tmp/TW.html - ipfs --timeout 5s get -o ~/.zen/tmp/TW.html /ipns/$GNS + rm -Rf ~/.zen/tmp/TW + ipfs --timeout 5s get -o ~/.zen/tmp/TW /ipns/$GNS # Combien de clefs? ipfs key list -l | grep -w $GNS ipfs key list -l | grep -w $GNS | wc -l -if [ ! -f ~/.zen/tmp/TW.html ]; then +if [ ! -f ~/.zen/tmp/TW/index.html ]; then echo "Première connexion? Appuyez sur ENTRER pour créer un nouveau TW Astronaute" read else @@ -185,7 +185,7 @@ G1PUB=$(cat /tmp/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) else - cp ~/.zen/tmp/TW.html ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html + cp ~/.zen/tmp/TW/index.html ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html fi