Skip to content

Commit

Permalink
[bin] tweak marathon script to allow MESOS_MASTER env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony L. Kerz authored and Tony L. Kerz committed Sep 29, 2015
1 parent 01fff3f commit 51977dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/chronos-marathon
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ fi
jar_files=( "$chronos_home"/target/chronos*.jar )
echo "Using jar file: $jar_files[0]"

# This assumes there is a file, /etc/mesos/zk that contains the ZK string.
mesos_master="$( < /etc/mesos/zk)"
# MESOS_MASTER variable or assuming there is a file, /etc/mesos/zk, that contains the ZK string
mesos_master="${MESOS_MASTER:-$( < /tmp/etc/mesos/zk)}"
tmp="${mesos_master//zk:\/\/}"
zk_hosts="${tmp/\/*}"

Expand Down

0 comments on commit 51977dc

Please sign in to comment.