From 5eb556f5211c9b21d2618c319764eaa5c280c37b Mon Sep 17 00:00:00 2001 From: fred Date: Thu, 27 Oct 2022 18:13:30 +0200 Subject: [PATCH] nice program --- 12345.sh | 14 +++++++------- templates/index.redirect | 4 +--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/12345.sh b/12345.sh index dec0d60b7..3b2001737 100755 --- a/12345.sh +++ b/12345.sh @@ -205,15 +205,15 @@ cat ~/.zen/tmp/123/${MOATS}.messaging.json >> ~/.zen/tmp/123/${MOATS}.index.redi TWIP=$myIP # OFFICIAL Gateway ( increase waiting time ) - MORE SECURE if [[ $TYPE == "official" ]]; then - echo "OFFICIAL latest online TW..." - echo "$LIBRA/ipns/$GNS" - echo "http://$myIP:8080/ipns/$GNS ($YOU)" - [[ $YOU ]] && ipfs --timeout 12s cat /ipns/$GNS > ~/.zen/tmp/123/${MOATS}.astroindex.html \ - || curl -m 12 -so ~/.zen/tmp/123/${MOATS}.astroindex.html "$LIBRA/ipns/$GNS" + + echo "OFFICIAL latest online TW... $LIBRA ($YOU)" + + [[ $YOU ]] && echo "http://$myIP:8080/ipns/$GNS ($YOU)" && ipfs --timeout 12s cat /ipns/$GNS > ~/.zen/tmp/123/${MOATS}.astroindex.html + [[ ! -s ~/.zen/tmp/123/${MOATS}.astroindex.html ]] && echo "$LIBRA/ipns/$GNS" && curl -m 12 -so ~/.zen/tmp/123/${MOATS}.astroindex.html "$LIBRA/ipns/$GNS" # DEBUG - echo "tiddlywiki --load ~/.zen/tmp/123/${MOATS}.astroindex.html --output ~/.zen/tmp --render '.' 'miz.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion'" - echo "cat ~/.zen/tmp/miz.json | jq -r .[].secret" + # echo "tiddlywiki --load ~/.zen/tmp/123/${MOATS}.astroindex.html --output ~/.zen/tmp --render '.' 'miz.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion'" + # echo "cat ~/.zen/tmp/miz.json | jq -r .[].secret" if [[ -s ~/.zen/tmp/123/${MOATS}.astroindex.html ]]; then tiddlywiki --load ~/.zen/tmp/123/${MOATS}.astroindex.html --output ~/.zen/tmp --render '.' 'miz.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion' diff --git a/templates/index.redirect b/templates/index.redirect index cc5c263c9..a56befb44 100644 --- a/templates/index.redirect +++ b/templates/index.redirect @@ -5,12 +5,10 @@ Content-Type: text/html; charset=UTF-8 - [Astroport] Redirecting ... - + [Astroport] Redirecting to _TWLINK_ ...

Please follow this link.

-

If failing. Clic above link or try to refresh page...