Takes care of maintaining ~/.zen/tmp/swarm updated

This commit is contained in:
fred 2023-09-12 18:17:43 +02:00
parent 8344a12dd1
commit e1f908c3df
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ echo "$(date -u)" > ~/.zen/tmp/${IPFSNODEID}/.MySwarm.staom
####################################################### #######################################################
## CREATE MySwarm KEYS ? ## CREATE MySwarm KEYS ?
if [[ ${CHAN} == "" ]]; then if [[ ${CHAN} == "" || ${CHAN} == "null" ]]; then
echo "## MAKE /proc/cpuinfo IPFSNODEID DERIVATED KEY ##" echo "## MAKE /proc/cpuinfo IPFSNODEID DERIVATED KEY ##"
SECRET1=$(cat /proc/cpuinfo | grep -Ev MHz | sha512sum | cut -d ' ' -f 1) SECRET1=$(cat /proc/cpuinfo | grep -Ev MHz | sha512sum | cut -d ' ' -f 1)
SECRET2=${IPFSNODEID} SECRET2=${IPFSNODEID}
@ -268,7 +268,7 @@ Content-Type: application/json; charset=UTF-8
( (
mkdir -p ~/.zen/tmp/swarm/${ASTROTOIPFS} mkdir -p ~/.zen/tmp/swarm/${ASTROTOIPFS}
echo "UPSYNC TO ~/.zen/tmp/swarm/${ASTROTOIPFS}" echo "UPSYNC TO ~/.zen/tmp/swarm/${ASTROTOIPFS}"
[[ $YOU ]] && ipfs --timeout 180s get -o ~/.zen/tmp/swarm/${ASTROTOIPFS} /ipns/${ASTROTOIPFS} ipfs --timeout 180s get -o ~/.zen/tmp/swarm/${ASTROTOIPFS} /ipns/${ASTROTOIPFS}
) & ) &
fi fi