forked from STI/Astroport.ONE
nice program
This commit is contained in:
parent
b4e05972a3
commit
5eb556f521
14
12345.sh
14
12345.sh
|
@ -205,15 +205,15 @@ cat ~/.zen/tmp/123/${MOATS}.messaging.json >> ~/.zen/tmp/123/${MOATS}.index.redi
|
||||||
TWIP=$myIP
|
TWIP=$myIP
|
||||||
# OFFICIAL Gateway ( increase waiting time ) - MORE SECURE
|
# OFFICIAL Gateway ( increase waiting time ) - MORE SECURE
|
||||||
if [[ $TYPE == "official" ]]; then
|
if [[ $TYPE == "official" ]]; then
|
||||||
echo "OFFICIAL latest online TW..."
|
|
||||||
echo "$LIBRA/ipns/$GNS"
|
echo "OFFICIAL latest online TW... $LIBRA ($YOU)"
|
||||||
echo "http://$myIP:8080/ipns/$GNS ($YOU)"
|
|
||||||
[[ $YOU ]] && ipfs --timeout 12s cat /ipns/$GNS > ~/.zen/tmp/123/${MOATS}.astroindex.html \
|
[[ $YOU ]] && echo "http://$myIP:8080/ipns/$GNS ($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"
|
[[ ! -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
|
# 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 "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 "cat ~/.zen/tmp/miz.json | jq -r .[].secret"
|
||||||
|
|
||||||
if [[ -s ~/.zen/tmp/123/${MOATS}.astroindex.html ]]; then
|
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'
|
tiddlywiki --load ~/.zen/tmp/123/${MOATS}.astroindex.html --output ~/.zen/tmp --render '.' 'miz.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion'
|
||||||
|
|
|
@ -5,12 +5,10 @@ Content-Type: text/html; charset=UTF-8
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>[Astroport] Redirecting ... </title>
|
<title>[Astroport] Redirecting to _TWLINK_ ... </title>
|
||||||
|
|
||||||
<meta http-equiv="refresh" content="0; url='_TWLINK_'" />
|
<meta http-equiv="refresh" content="0; url='_TWLINK_'" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>Please follow <a href="_TWLINK_">this link</a>.</p>
|
<p>Please follow <a href="_TWLINK_">this link</a>.</p>
|
||||||
<h1>If failing. Clic above link or try to refresh page... </h1>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue