This commit is contained in:
aynic.os 2023-01-15 17:40:52 +01:00
parent b60b36eb45
commit 84e6c11dbf
2 changed files with 3 additions and 3 deletions

View File

@ -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
############################################################################

View File

@ -123,7 +123,7 @@ myIp() {
myIpfs() {
[ -n "$(myIpfsHash)" ] \
&& local myIpfs="${myIPFS}/ipfs/$(myIpfsHash)" \
&& local myIpfs="${myIPFSGW}/ipfs/$(myIpfsHash)" \
&& echo "$myIpfs"
}