From 350091187499c327297b0ef3c4a8042e4cc26421 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 5 Mar 2023 03:59:45 +0100 Subject: [PATCH] TW droping --- command.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/command.sh b/command.sh index 1fce8a86..ac9d1f01 100755 --- a/command.sh +++ b/command.sh @@ -121,14 +121,11 @@ select fav in "${choices[@]}"; do ;; "SUPPRIMER VISA") - echo "ATTENTION ${PLAYER} SUPPRESSION CACHE LOCAL DEFINITIVE !!" + echo "ATTENTION ${PLAYER} DECONNEXION DE VOTRE TW !!" echo "Enter to continue. Ctrl+C to stop" read - echo "REPLACE $IPFSNODEID WITH _ASTROPORT_" - sed "s~${IPFSNODEID}~_ASTROPORT_~g" ~/.zen/game/players/$PLAYER/ipfs/moa/index.html > ~/.zen/tmp/$PLAYER.html - TW=$(ipfs add -Hq ~/.zen/tmp/$PLAYER.html | tail -n 1) - ipfs name publish --allow-offline --key=$PLAYER /ipfs/$TW - espeak "TW dropped in cyberspace..." + espeak "Droping TW in cyber space" + ipfs key rm ${PLAYER}; ipfs key rm ${PLAYER}_feed; ipfs key rm $G1PUB; for voeu in $(ls ~/.zen/game/players/$PLAYER/voeux/*/ 2>/dev/null); do ipfs key rm $voeu @@ -143,7 +140,7 @@ select fav in "${choices[@]}"; do #~ echo "REMOVE CESIUM+" $MY_PATH/tools/jaklis/jaklis.py -k $HOME/.zen/game/players/$PLAYER/secret.dunikey -n "$myCESIUM" erase echo "rm -Rf ~/.zen/game/players/$PLAYER" - sudo rm -Rf ~/.zen/game/players/$PLAYER + rm -Rf ~/.zen/game/players/$PLAYER break ;;