My TiddlyWiki on Astroport

This commit is contained in:
fred 2023-10-07 15:58:55 +02:00
parent 4edf93fea5
commit d87550beb0
4 changed files with 18 additions and 4 deletions

View File

@ -80,8 +80,9 @@ for PLAYER in ${PLAYERONE[@]}; do
echo "/ipns/${ASTRONAUTENS} ON $LIBRA"
## IPFS / HTTP / LOCAL
#~ DISABLED || curl -m 60 -so ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html "$LIBRA/ipns/${ASTRONAUTENS}" \
ipfs --timeout 360s get -o ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html /ipns/${ASTRONAUTENS} \
|| curl -m 60 -so ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html "$LIBRA/ipns/${ASTRONAUTENS}" \
|| cp ~/.zen/game/players/${PLAYER}/ipfs/moa/index.html ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html
## PLAYER TW IS ONLINE ?

View File

@ -69,7 +69,10 @@ if [[ $SALT != "" && PEPPER != "" ]]; then
#~ echo "CREATION TW Astronaute" ## Nouveau Compte Astronaute
#~ echo
#~ echo "***** Activation du Canal TW Astronaute ${PLAYER} *****"
cp ${MY_PATH}/../templates/twdefault.html ~/.zen/tmp/${MOATS}/TW/index.html
[[ ${LON} && ${LAT} ]] \
&& cp ${MY_PATH}/../templates/minimal.html ~/.zen/tmp/${MOATS}/TW/index.html \
|| cp ${MY_PATH}/../templates/twdefault.html ~/.zen/tmp/${MOATS}/TW/index.html
else
#############################################
@ -109,6 +112,8 @@ fi
################################################################################
TWMODEL="/ipfs/bafybeiaaf52awrqliwn5mqleua6tcv4qv5oxjfa6j2web6nh42vzdtjkiu"
# ipfs cat $TWMODEL > templates/twdefault.html
MINIMAL="/ipfs/bafybeidgyo756zmsltbq5ptxjdn2spncv5pccn6vxes3j7cqubqlohjr2e"
# ipfs cat $MINIMAL > templates/minimal.html
##################################################### # NEW PLAYER ###############
################################################################################
#~ echo "=============================================

View File

@ -38,7 +38,7 @@ INDEX="$3"
mkdir -p ~/.zen/tmp/${IPFSNODEID}/WISH/${PLAYER}/g1voeu
## PROTOCOL EVOLUTION RUN & REMOVE
rm -Rf -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}
rm -Rf ~/.zen/tmp/${IPFSNODEID}/${PLAYER}
###############################

View File

@ -1,5 +1,13 @@
#!/bin/bash
# Run After PLAYER.entrance.sh
################################################################################
# Author: Fred (support@qo-op.com)
# Version: 0.1
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
################################################################################
# Takes care of analysing GChange+ Pod key and stars relations
################################################################################
# TODO: could make better ES stars requests
# https://forum.monnaie-libre.fr/t/proposition-damelioration-de-gchange/1940/49
################################################################################
MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized