forked from STI/Astroport.ONE
cat $HOMEPAGE >> $HOME/.zen/tmp/myIP.http.${MOATS}
This commit is contained in:
parent
b4d8202f1b
commit
e9adb470d9
2
12345.sh
2
12345.sh
|
@ -38,7 +38,7 @@ while true; do
|
||||||
echo "HTTP/1.1 200 Everything Is Just Fine
|
echo "HTTP/1.1 200 Everything Is Just Fine
|
||||||
Server: Astroport
|
Server: Astroport
|
||||||
Content-Type: text/html; charset=UTF-8" > $HOME/.zen/tmp/myIP.http.${MOATS}
|
Content-Type: text/html; charset=UTF-8" > $HOME/.zen/tmp/myIP.http.${MOATS}
|
||||||
cat $HOMEPAGE $HOME/.zen/tmp/myIP.http.${MOATS} >> $HOME/.zen/tmp/myIP.http.${MOATS}
|
cat $HOMEPAGE >> $HOME/.zen/tmp/myIP.http.${MOATS}
|
||||||
else
|
else
|
||||||
# REPLACE myIP in http response template
|
# REPLACE myIP in http response template
|
||||||
sed "s~127.0.0.1:12345~$myIP:$PORT~g" $HOME/.zen/Astroport.ONE/templates/index.http > ~/.zen/tmp/myIP.http.${MOATS}
|
sed "s~127.0.0.1:12345~$myIP:$PORT~g" $HOME/.zen/Astroport.ONE/templates/index.http > ~/.zen/tmp/myIP.http.${MOATS}
|
||||||
|
|
Loading…
Reference in New Issue