better loop cycling

This commit is contained in:
fred 2022-11-03 20:16:18 +01:00
parent 1a7404a40b
commit c85b28e8bc
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,8 @@ ipfs name publish --allow-offline /ipfs/Qmc5m94Gu7z62RC8waSKkZUrCCBJPyHbkpmGzEeP
# REFRESH FROM BOOTSTRAP (COULD, SHOULD BE MY FRIENDS !)
while true; do
(
start=`date +%s`
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#") # remove comments
do
@ -45,6 +47,11 @@ while true; do
echo "SELF PUBLISHING SWARM STATUS"
ipfs name publish --allow-offline /ipfs/$ROUTING
end=`date +%s`
echo '(*__*) UPDATE & PUBLISH duration was '`expr $end - $start`' seconds.'
) &
HTTPCORS="HTTP/1.1 200 OK
Access-Control-Allow-Origin: \*
Access-Control-Allow-Credentials: true