[[ ! $myIP ]] && myIP="127.0.1.1"
This commit is contained in:
parent
0449b679ee
commit
4825ed6f3e
1
12345.sh
1
12345.sh
|
@ -21,6 +21,7 @@ ncrunning=$(ps auxf --sort=+utime | grep -w 'nc -l -p 1234' | grep -v -E 'color=
|
||||||
[[ $ncrunning ]] && echo "already running" && exit 1
|
[[ $ncrunning ]] && echo "already running" && exit 1
|
||||||
|
|
||||||
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
|
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
|
||||||
|
[[ ! $myIP ]] && myIP="127.0.1.1"
|
||||||
|
|
||||||
# Check if Astroport Station already has a "captain"
|
# Check if Astroport Station already has a "captain"
|
||||||
echo "Register and Connect Astronaut with http://$myIP:1234/?email=&ph1=&ph2="
|
echo "Register and Connect Astronaut with http://$myIP:1234/?email=&ph1=&ph2="
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
<h6>
|
<h6>
|
||||||
<a href="_IPNSL_"> _\/_ </a> powered by <a href="https://astroport.com"><span>"</span>Astroport<span>"</span></a>
|
<a href="_IPNSL_"> _\/_ </a> powered by <a href="http://astroport.com"><span>"</span>Astroport<span>"</span></a>
|
||||||
</h6>
|
</h6>
|
||||||
</center>
|
</center>
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in New Issue