You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
424 B

#!/bin/sh
# provide NOMAD_ADDR for connecting to nomad instance
bind_addr=`grep 'bind_addr *=' \
@l_prefix@/etc/nomad/nomad.conf | \
sed -e 's;^[^"]*";;' -e 's;".*$;;'`
port_http=`grep 'http *=' \
@l_prefix@/etc/nomad/nomad.conf | \
sed -e 's;^.*= *;;' -e 's; .*$;;'`
NOMAD_ADDR=http://${bind_addr}:${port_http}
export NOMAD_ADDR
# pass-through execution
exec @l_prefix@/libexec/nomad/nomad ${1+"$@"}