template
This commit is contained in:
parent
b60b36eb45
commit
84e6c11dbf
4
12345.sh
4
12345.sh
|
@ -99,8 +99,8 @@ while true; do
|
||||||
# REPLACE myHOST in http response template (fixing next API meeting point)
|
# REPLACE myHOST in http response template (fixing next API meeting point)
|
||||||
echo "$HTTPCORS" > ~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
echo "$HTTPCORS" > ~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
||||||
myHtml >> ~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
myHtml >> ~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
||||||
sed -i -e "s~\"${myIPFS}/\"~\"$(myIpfs)\"~g" \
|
sed -i -e "s~\"http://127.0.0.1:1234/\"~\"$(myIpfs)\"~g" \
|
||||||
-e "s~http://${myHOST}:12345~http://${myHOST}:${PORT}~g" \
|
-e "s~http://${myHOST}:12345~http://${myIP}:${PORT}~g" \
|
||||||
~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
~/.zen/tmp/coucou/${MOATS}.myHOST.http
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
|
@ -123,7 +123,7 @@ myIp() {
|
||||||
|
|
||||||
myIpfs() {
|
myIpfs() {
|
||||||
[ -n "$(myIpfsHash)" ] \
|
[ -n "$(myIpfsHash)" ] \
|
||||||
&& local myIpfs="${myIPFS}/ipfs/$(myIpfsHash)" \
|
&& local myIpfs="${myIPFSGW}/ipfs/$(myIpfsHash)" \
|
||||||
&& echo "$myIpfs"
|
&& echo "$myIpfs"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue