Fix bug.
This commit is contained in:
parent
5543796f1e
commit
8c87cdb600
|
@ -228,8 +228,7 @@ create)
|
||||||
echo "-----------------------------------------------------"
|
echo "-----------------------------------------------------"
|
||||||
echo "$site_name is ready"
|
echo "$site_name is ready"
|
||||||
echo "Path: $ORBIT_SITES/$site_name"
|
echo "Path: $ORBIT_SITES/$site_name"
|
||||||
interface_name=`ip route get 8.8.8.8|xargs|awk '{print $5}'`;
|
local_ip=`ip route get 8.8.8.8|xargs|awk '{print $7}'`;
|
||||||
local_ip=`ip a|grep "$interface_name" | grep -ohP '(?<=inet ).*(?=/24)'|sed 's/\s*$//g'|xargs|awk '{print $1}'`
|
|
||||||
echo http://$local_ip:$PORT
|
echo http://$local_ip:$PORT
|
||||||
echo "-----------------------------------------------------"
|
echo "-----------------------------------------------------"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue