From f12cf474bfdef32ed240267982f24df4b7d84a20 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 14 Feb 2024 19:36:37 +0100 Subject: [PATCH] PLAYER UNPLUG procedure --- RUNTIME/PLAYER.refresh.sh | 6 +++--- {tools => RUNTIME}/PLAYER.unplug.sh | 0 WWW/Readme.md | 4 ++++ .../{ProteinConvertionToFrequencies.html => index.html} | 0 .../index.webrtc.html => Whisper-WebRTC/index.html} | 0 WWW/{FAVICON => }/iframe.html | 0 command.sh | 2 +- 7 files changed, 8 insertions(+), 4 deletions(-) rename {tools => RUNTIME}/PLAYER.unplug.sh (100%) rename WWW/_sandbox/Proteody/{ProteinConvertionToFrequencies.html => index.html} (100%) rename WWW/_sandbox/{Whisper/index.webrtc.html => Whisper-WebRTC/index.html} (100%) rename WWW/{FAVICON => }/iframe.html (100%) diff --git a/RUNTIME/PLAYER.refresh.sh b/RUNTIME/PLAYER.refresh.sh index 666b7375..489a15c6 100755 --- a/RUNTIME/PLAYER.refresh.sh +++ b/RUNTIME/PLAYER.refresh.sh @@ -124,7 +124,7 @@ for PLAYER in ${PLAYERONE[@]}; do [[ $try == 0 ]] \ && echo "PLAYER ${PLAYER} UNPLUG" \ - && ${MY_PATH}/../tools/PLAYER.unplug.sh ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html ${PLAYER} \ + && ${MY_PATH}/PLAYER.unplug.sh ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html ${PLAYER} \ && continue try=$((try-1)) @@ -200,7 +200,7 @@ for PLAYER in ${PLAYERONE[@]}; do if [[ ${IPNSTAIL} != ${IPFSNODEID} || ${IPNSTAIL} == "_ASTROPORT_" ]]; then echo "> I AM ${IPFSNODEID} : PLAYER MOVED TO ${IPNSTAIL} : EJECTION " echo "UNPLUG PLAYER" - ${MY_PATH}/../tools/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" "ONE" + ${MY_PATH}/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" "ONE" echo ">>>> ASTRONAUT ${PLAYER} TW CAPSULE EJECTION TERMINATED" continue fi @@ -363,7 +363,7 @@ for PLAYER in ${PLAYERONE[@]}; do && echo "<<<< PLAYER TW WARNING <<<< ${DIFF_SECONDS} > ${days} days" \ && [[ ${DIFF_SECONDS} -gt $(( 30 * 24 * 60 * 60 )) ]] \ && echo ">>>> PLAYER TW UNPLUG >>>>> ${days} days => BYE BYE ${PLAYER} ZEN=$ZEN" \ - && ${MY_PATH}/../tools/PLAYER.unplug.sh ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html ${PLAYER} \ + && ${MY_PATH}/PLAYER.unplug.sh ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html ${PLAYER} \ && continue #################################### UNPLUG ACCOUNT diff --git a/tools/PLAYER.unplug.sh b/RUNTIME/PLAYER.unplug.sh similarity index 100% rename from tools/PLAYER.unplug.sh rename to RUNTIME/PLAYER.unplug.sh diff --git a/WWW/Readme.md b/WWW/Readme.md index 2a143ac5..02e6463a 100644 --- a/WWW/Readme.md +++ b/WWW/Readme.md @@ -7,3 +7,7 @@ This directory contains "ASTROBOT" programs templates * example: ```/ASTROBOT/G1CopierYoutube.sh``` ```/WWW/CopierYoutube/``` + +_sandbox + +just piece of code... you can use and make official diff --git a/WWW/_sandbox/Proteody/ProteinConvertionToFrequencies.html b/WWW/_sandbox/Proteody/index.html similarity index 100% rename from WWW/_sandbox/Proteody/ProteinConvertionToFrequencies.html rename to WWW/_sandbox/Proteody/index.html diff --git a/WWW/_sandbox/Whisper/index.webrtc.html b/WWW/_sandbox/Whisper-WebRTC/index.html similarity index 100% rename from WWW/_sandbox/Whisper/index.webrtc.html rename to WWW/_sandbox/Whisper-WebRTC/index.html diff --git a/WWW/FAVICON/iframe.html b/WWW/iframe.html similarity index 100% rename from WWW/FAVICON/iframe.html rename to WWW/iframe.html diff --git a/command.sh b/command.sh index f831ab13..cbd6dfbc 100755 --- a/command.sh +++ b/command.sh @@ -143,7 +143,7 @@ select fav in "${choices[@]}"; do echo "ATTENTION ${PLAYER} DECONNEXION DE VOTRE TW !!" echo "Enter to continue. Ctrl+C to stop" read - ${MY_PATH}/tools/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" + ${MY_PATH}/RUNTIME/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" break ;;