From ec1d8f275ff4cd720a8cd3bc918b32f9c5f5d099 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 23 Jul 2020 11:47:37 +0300 Subject: Fix detecting current IP address on rebuild-wekan.sh Thanks to xet7 ! --- rebuild-wekan.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rebuild-wekan.sh') diff --git a/rebuild-wekan.sh b/rebuild-wekan.sh index e07dfc0e..64aae441 100755 --- a/rebuild-wekan.sh +++ b/rebuild-wekan.sh @@ -173,7 +173,8 @@ do ;; "Run Meteor for dev on http://CURRENT-IP-ADDRESS:4000") - IPADDRESS=$(ip a | grep 'scope global' | 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) + echo "Your IP address is $IPADDRESS" WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:4000 meteor run --exclude-archs web.browser.legacy,web.cordova --port 4000 break ;; @@ -184,6 +185,7 @@ do read IPADDRESS echo "On what port you would like to run Wekan?" read PORT + echo "ROOT_URL=http://$IPADDRESS:$PORT" WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:$PORT meteor run --exclude-archs web.browser.legacy,web.cordova --port $PORT break ;; -- cgit v1.2.3-1-g7c22