Skip to content

Commit

Permalink
Allow caller to specify where BIRD config templates are
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Jerram authored and Neil Jerram committed Oct 14, 2015
1 parent 77e9f84 commit da1803c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions etc/calico-gen-bird-mesh-conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ else
BIRD_CONF=/etc/bird/bird.conf
fi

BIRD_CONF_TEMPLATE=/usr/share/calico/bird/calico-bird.conf.template
BIRD_CONF_PEER_TEMPLATE=/usr/share/calico/bird/calico-bird-peer.conf.template
TEMPLATE_DIR=${TEMPLATE_DIR:-/usr/share/calico/bird}
BIRD_CONF_TEMPLATE=${TEMPLATE_DIR}/calico-bird.conf.template
BIRD_CONF_PEER_TEMPLATE=${TEMPLATE_DIR}/calico-bird-peer.conf.template

# Require at least 3 arguments.
[ $# -ge 2 ] || cat <<EOF
Expand Down

0 comments on commit da1803c

Please sign in to comment.