You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/20 03:03:02 UTC

[GitHub] mhamann closed pull request #313: Fix awk command in init.sh generating resolvers.conf file

mhamann closed pull request #313: Fix awk command in init.sh generating resolvers.conf file
URL: https://github.com/apache/incubator-openwhisk-apigateway/pull/313
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/init.sh b/init.sh
index c68fe96..6fcc7a4 100755
--- a/init.sh
+++ b/init.sh
@@ -55,7 +55,7 @@ api-gateway-config-supervisor \
     --sync-cmd="${sync_cmd}" \
     --http-addr=127.0.0.1:8888 &
 
-echo resolver $(awk 'BEGIN{ORS=" "} /nameserver/{print $2}' /etc/resolv.conf | sed "s/ $/;/g") > /etc/api-gateway/conf.d/includes/resolvers.conf
+echo resolver $(awk 'BEGIN{ORS=" "} /^nameserver/{print $2}' /etc/resolv.conf | sed "s/ $/;/g") > /etc/api-gateway/conf.d/includes/resolvers.conf
 echo "   ...  with dns $(cat /etc/api-gateway/conf.d/includes/resolvers.conf)"
 
 echo "   ... testing configuration "


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services