ON / OFF / LOW

This commit is contained in:
fred 2023-04-17 10:17:47 +02:00
parent 1d727af793
commit 2fa7bc613a
2 changed files with 7 additions and 4 deletions

View File

@ -12,6 +12,7 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
# Run TAG subprocess: tube, voeu
############################################
echo "## RUNNING MAP.refresh"
[[ ${IPFSNODEID} == "" ]] && echo "IPFSNODEID is empty - EXIT -" && exit 1
#################################################################
## IPFSNODEID ASTRONAUTES SIGNALING ## 12345 port
@ -36,14 +37,16 @@ if [[ -d ~/.zen/tmp/${IPFSNODEID} ]]; then
echo "FOUND : ${PLAYERONE[@]}"
## RUNING FOR ALL LOCAL PLAYERS
for PLAYER in ${PLAYERONE[@]}; do
echo "${PLAYER} SEEKING OWN FRIENDS"
mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/
cp -Rf ~/.zen/game/players/${PLAYER}/FRIENDS/* ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/
done
############################################
echo "############################################ MY MAP "
ls ~/.zen/tmp/${IPFSNODEID}/
echo "############################################"
NSIZE=$(du -b ~/.zen/tmp/${IPFSNODEID} | tail -n 1 | cut -f 1)
ROUTING=$(ipfs add -rwHq ~/.zen/tmp/${IPFSNODEID}/* | tail -n 1 )
ipfs name publish /ipfs/$ROUTING
ipfs name publish /ipfs/${ROUTING}
echo ">> $NSIZE Bytes STATION BALISE > ${myIPFS}/ipns/${IPFSNODEID}"
fi

View File

@ -11,7 +11,7 @@ echo '
########################################################################
# \\///
# qo-op
############# '$MY_PATH/$ME'
############# '$MY_PATH/$ME $1'
########################################################################
# Activate / Desactivate ASTROPORT 20h12.process.sh job & IPFS daemon
########################################################################'