ASTRO enters SALT PEPPER gets back online TW

This commit is contained in:
fred 2022-08-23 14:44:43 +02:00
parent 21dfa5f4ae
commit 41512e4672
1 changed files with 4 additions and 4 deletions

View File

@ -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