openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mham...@apache.org
Subject [incubator-openwhisk-apigateway] branch master updated: Fix awk command in init.sh generating resolvers.conf file (#313)
Date Wed, 20 Jun 2018 03:03:03 GMT
This is an automated email from the ASF dual-hosted git repository.

mhamann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-apigateway.git


The following commit(s) were added to refs/heads/master by this push:
     new 2b87366  Fix awk command in init.sh generating resolvers.conf file (#313)
2b87366 is described below

commit 2b873660d1931d504b9e17405fb99630533be6da
Author: Sam Baxter <baxtersa14@gmail.com>
AuthorDate: Tue Jun 19 23:03:00 2018 -0400

    Fix awk command in init.sh generating resolvers.conf file (#313)
---
 init.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 "


Mime
View raw message