From 7b4131f817782ac2840806cee39c891f29fff833 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 12 Dec 2022 23:57:21 +0100 Subject: [PATCH] SCANNING --- 20h12.process.sh | 1 + command.sh | 6 +++--- tools/VISA.new.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/20h12.process.sh b/20h12.process.sh index 23a6cd90..ddf233b6 100755 --- a/20h12.process.sh +++ b/20h12.process.sh @@ -58,6 +58,7 @@ fi espeak "Tube Up" > /dev/null 2>&1 ## Updating yt-dlp +$MY_PATH/youtube-dl.sh sudo youtube-dl -U ######################################################################## diff --git a/command.sh b/command.sh index 62cf2518..726c38de 100755 --- a/command.sh +++ b/command.sh @@ -33,7 +33,7 @@ echo [[ ! $(which ipfs) ]] && echo "EXIT. Vous devez avoir installé ipfs CLI sur votre ordinateur" && echo "https://dist.ipfs.io/#go-ipfs" && exit 1 YOU=$(ipfs swarm peers >/dev/null 2>&1 && echo "$USER" || ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1); [[ ! $YOU ]] && echo "Lancez 'ipfs daemon' SVP sudo systemctl start ipfs" && exit 1 -IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID) +export IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID) echo 'PRESS ENTER... '; read @@ -91,13 +91,13 @@ echo "________LOGIN OK____________"; echo echo "DECHIFFRAGE CLEFS ASTRONAUTE" echo "Votre Pass Astroport.ONE : $(cat ~/.zen/game/players/$PLAYER/.pass 2>/dev/null)" -G1PUB=$(cat ~/.zen/game/players/$PLAYER/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) +export G1PUB=$(cat ~/.zen/game/players/$PLAYER/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) [ ! ${G1PUB} ] && echo "ERROR. MAUVAIS PASS. EXIT" && exit 1 echo "Clef Publque Astronaute : $G1PUB" echo "ENTREE ACCORDEE" echo -ASTRONAUTENS=$(ipfs key list -l | grep -w "$PLAYER" | cut -d ' ' -f 1) +export ASTRONAUTENS=$(ipfs key list -l | grep -w "$PLAYER" | cut -d ' ' -f 1) echo "$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null) TW/Moa" echo "http://$myIP:8080/ipns/$ASTRONAUTENS" diff --git a/tools/VISA.new.sh b/tools/VISA.new.sh index d35ffaa9..26db4b65 100755 --- a/tools/VISA.new.sh +++ b/tools/VISA.new.sh @@ -49,7 +49,7 @@ if [[ $SALT != "" && PEPPER != "" ]]; then mkdir -p ~/.zen/tmp/${MOATS}/TW - echo "SEARCHING FOR ONLINE /ipns/${ASTRONAUTENS}" + echo "SCANNING /ipns/${ASTRONAUTENS}" ## GETTING LAST TW via IPFS or HTTP GW [[ $YOU ]] \ && ipfs --timeout 20s cat /ipns/${ASTRONAUTENS} > ~/.zen/tmp/${MOATS}/TW/index.html