diff --git a/G1VOEUX.sh b/G1VOEUX.sh index 5d8974a3..6f42f2b3 100755 --- a/G1VOEUX.sh +++ b/G1VOEUX.sh @@ -35,7 +35,7 @@ echo ######################################################## # BACKING UP Astronaute TW IPNS rm -Rf ~/.zen/tmp/TW -ipfs --timeout 6s get -o ~/.zen/tmp/TW /ipns/$ASTRONAUTENS +ipfs --timeout 6s get -o ~/.zen/tmp/TW/ /ipns/$ASTRONAUTENS CHECK=$(ls ~/.zen/tmp/TW/) && mv ~/.zen/tmp/TW/$CHECK ~/.zen/tmp/TW/index.html diff --git a/astroscan.sh b/astroscan.sh index b69723a6..f62646f4 100755 --- a/astroscan.sh +++ b/astroscan.sh @@ -104,7 +104,7 @@ sudo cat /dev/ttyACM0 | while read line; do else echo "Canal TW existant" # REFRESH IPNS - ipfs get -o ~/.zen/game/world/$G1PUB /ipns/$IPNSK + ipfs get -o ~/.zen/game/world/$G1PUB/ /ipns/$IPNSK CHECK=$(ls ~/.zen/game/world/$G1PUB/) && mv ~/.zen/game/world/$G1PUB/$CHECK ~/.zen/game/world/$G1PUB/index.html fi diff --git a/tools/VISA.new.sh b/tools/VISA.new.sh index 3b0c4def..2a1803df 100755 --- a/tools/VISA.new.sh +++ b/tools/VISA.new.sh @@ -24,7 +24,7 @@ if [[ $SALT != "" && PEPPER != "" ]]; then GNS=$(ipfs key import gchange -f pem-pkcs8-cleartext ~/.zen/tmp/gchange.key ) rm -Rf ~/.zen/tmp/TW - ipfs --timeout 5s get -o ~/.zen/tmp/TW /ipns/$GNS + ipfs --timeout 5s get -o ~/.zen/tmp/TW/ /ipns/$GNS # Combien de clefs? ipfs key list -l | grep -w $GNS diff --git a/tools/VOEUX.refresh.sh b/tools/VOEUX.refresh.sh index a18ffdf5..11ba28a0 100755 --- a/tools/VOEUX.refresh.sh +++ b/tools/VOEUX.refresh.sh @@ -29,7 +29,7 @@ do mkdir -p ~/.zen/tmp/work echo "Getting latest online TW..." - ipfs --timeout 12s get -o ~/.zen/tmp/work /ipns/$voeuns + ipfs --timeout 12s get -o ~/.zen/tmp/work/ /ipns/$voeuns # CORRECT FileName CHECK=$(ls ~/.zen/tmp/work/) && mv ~/.zen/tmp/work/$CHECK ~/.zen/tmp/work/index.html @@ -68,7 +68,7 @@ for PLAYER in $(ls ~/.zen/game/players/); do ## REFRESH ASTRONAUTE TW ASTRONAUTENS=$(cat ~/.zen/game/players/$PLAYER/.playerns) rm -Rf ~/.zen/tmp/astro - ipfs --timeout 12s get -o ~/.zen/tmp/astro /ipns/$ASTRONAUTENS + ipfs --timeout 12s get -o ~/.zen/tmp/astro/ /ipns/$ASTRONAUTENS CHECK=$(ls ~/.zen/tmp/astro/) && mv ~/.zen/tmp/astro/$CHECK ~/.zen/tmp/astro/index.html if [ ! -f ~/.zen/tmp/astro/index.html ]; then