From 84e6c11dbfb1696f7408608139e947deb2e1332f Mon Sep 17 00:00:00 2001 From: "aynic.os" Date: Sun, 15 Jan 2023 17:40:52 +0100 Subject: [PATCH] template --- 12345.sh | 4 ++-- tools/my.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/12345.sh b/12345.sh index 909cb434..67f904cc 100755 --- a/12345.sh +++ b/12345.sh @@ -99,8 +99,8 @@ while true; do # REPLACE myHOST in http response template (fixing next API meeting point) echo "$HTTPCORS" > ~/.zen/tmp/coucou/${MOATS}.myHOST.http myHtml >> ~/.zen/tmp/coucou/${MOATS}.myHOST.http - sed -i -e "s~\"${myIPFS}/\"~\"$(myIpfs)\"~g" \ - -e "s~http://${myHOST}:12345~http://${myHOST}:${PORT}~g" \ + sed -i -e "s~\"http://127.0.0.1:1234/\"~\"$(myIpfs)\"~g" \ + -e "s~http://${myHOST}:12345~http://${myIP}:${PORT}~g" \ ~/.zen/tmp/coucou/${MOATS}.myHOST.http ############################################################################ diff --git a/tools/my.sh b/tools/my.sh index bb7e99e7..9935a1b1 100755 --- a/tools/my.sh +++ b/tools/my.sh @@ -123,7 +123,7 @@ myIp() { myIpfs() { [ -n "$(myIpfsHash)" ] \ - && local myIpfs="${myIPFS}/ipfs/$(myIpfsHash)" \ + && local myIpfs="${myIPFSGW}/ipfs/$(myIpfsHash)" \ && echo "$myIpfs" }