TW droping

This commit is contained in:
fred 2023-03-05 03:59:45 +01:00
parent 9bf211fae9
commit 3500911874
1 changed files with 4 additions and 7 deletions

View File

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