From 5352e972b9b1b039b00c377bad4f9cd1ffb591c6 Mon Sep 17 00:00:00 2001 From: Yann Autissier Date: Sun, 25 Dec 2022 22:46:35 +0000 Subject: [PATCH] fix template --- 12345.sh | 4 +++- templates/register.html | 6 ++++-- tools/template.sh | 5 ++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/12345.sh b/12345.sh index cde3f25d..3799d80c 100755 --- a/12345.sh +++ b/12345.sh @@ -100,7 +100,9 @@ while true; do # REPLACE myHOST in http response template (fixing next API meeting point) echo "$HTTPCORS" > ~/.zen/tmp/coucou/${MOATS}.myHOST.http template_register >> ~/.zen/tmp/coucou/${MOATS}.myHOST.http - sed -i "s~:http://127.0.0.1:12345~http://${myHOST}:${PORT}~g" ~/.zen/tmp/coucou/${MOATS}.myHOST.http + sed -i -e "s~\"${myIPFS}/\"~\"$(myIpfs)\"~g" \ + -e "s~http://${myHOST}:12345~http://${myHOST}:${PORT}~g" \ + ~/.zen/tmp/coucou/${MOATS}.myHOST.http ############################################################################ ## SERVE LANDING REDIRECT PAGE ~/.zen/tmp/coucou/${MOATS}.myHOST.http on PORT 1234 (LOOP BLOCKING POINT) diff --git a/templates/register.html b/templates/register.html index 19627fcd..2d8db731 100644 --- a/templates/register.html +++ b/templates/register.html @@ -4,7 +4,7 @@ [Astroport] :: Station _HOSTNAME_ :: _IPFSNODEID_ - +