From 6479c6a5c516ade68d50849115367be90d3199a2 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 16 Jun 2023 12:22:18 +0300 Subject: [PATCH] Update rebuild-wekan.sh to use local network IP address. Thanks to xet7 ! --- rebuild-wekan.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rebuild-wekan.sh b/rebuild-wekan.sh index 0cf4e2954..4a6d5a113 100755 --- a/rebuild-wekan.sh +++ b/rebuild-wekan.sh @@ -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" #---------------------------------------------------------------------