mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
Update rebuild-wekan.sh to use local network IP address.
Thanks to xet7 !
This commit is contained in:
parent
a1ddf8e6d2
commit
6479c6a5c5
1 changed files with 2 additions and 2 deletions
|
@ -146,9 +146,9 @@ do
|
|||
|
||||
"Run Meteor for dev on http://CURRENT-IP-ADDRESS:4000")
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
IPADDRESS=$(ifconfig | grep broadcast | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1)
|
||||
IPADDRESS=$(ifconfig | grep broadcast | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1 | grep '192.')
|
||||
else
|
||||
IPADDRESS=$(ip a | grep 'noprefixroute' | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1)
|
||||
IPADDRESS=$(ip a | grep 'noprefixroute' | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1 | grep '192.')
|
||||
fi
|
||||
echo "Your IP address is $IPADDRESS"
|
||||
#---------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue