diff --git a/ajouter_media.sh b/ajouter_media.sh index 70591ffb..aea0f9f7 100755 --- a/ajouter_media.sh +++ b/ajouter_media.sh @@ -38,7 +38,7 @@ floop=0 while [[ ! $(netstat -tan | grep 5001 | grep LISTEN) ]]; do sleep 1 ((floop++)) && [ $floop -gt 10 ] \ - && echo "ERROR. IPFS daemon not running on port 5001" + && echo "ERROR. IPFS daemon not running on port 5001" \ && espeak 'ERROR. IPFS daemon not started' \ && exit 1 done diff --git a/tools/PLAYER.unplug.sh b/tools/PLAYER.unplug.sh index 79afdd56..0857203d 100755 --- a/tools/PLAYER.unplug.sh +++ b/tools/PLAYER.unplug.sh @@ -49,7 +49,6 @@ mkdir -p ~/.zen/tmp/${MOATS} SECTORG1PUB=$(${MY_PATH}/../tools/keygen -t duniter "${UPLANETNAME}${SECTOR}" "${UPLANETNAME}${SECTOR}") ############################################################## - [[ ! ${SECTORG1PUB} ]] && echo "ERROR generating UMAP WALLET ${UPLANETNAME}${SECTOR}/${UPLANETNAME}${SECTOR}" && exit 1 COINS=$($MY_PATH/../tools/COINScheck.sh ${SECTORG1PUB} | tail -n 1) echo "SECTOR WALLET = ${COINS} G1 : ${SECTORG1PUB}" @@ -66,6 +65,10 @@ mkdir -p ~/.zen/tmp/${MOATS} ipfs key rm ${vk} done +## SEND PLAYER LAST KNOW TW +TW=$(ipfs add -Hq ${INDEX} | tail -n 1) +${MY_PATH}/../tools/mailjet.sh "${PLAYER}" "Hello ${PLAYER},
Your TW is unplugged from Astroport Station : TW LAST STATE.

May the force be with you." + echo "PLAYER IPNS KEYS UNPLUGED" echo "rm -Rf ~/.zen/game/players/${PLAYER}" rm -Rf ~/.zen/game/players/${PLAYER}