Skip to content

Commit

Permalink
Merge pull request #38 from gengmao/mao-fix-messenger-address
Browse files Browse the repository at this point in the history
Fix messenger address in container
  • Loading branch information
keis committed Dec 10, 2015
2 parents 48edf50 + e531ce6 commit 522d4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/marathon.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

lookup_host() {
nslookup "$1" | awk -v HOST="$1" '{ if ($2 == HOST) { getline; gsub(/^.*: /, ""); print; } }'
nslookup "$1" | awk -v HOST="$1" '{ if ($2 == HOST) { getline; gsub(/^.*: /, ""); print $1 } }'
}

export MESSENGER_ADDRESS=`lookup_host ${HOST}${DOMAIN:+.$DOMAIN}`
Expand Down

0 comments on commit 522d4d6

Please sign in to comment.