Skip to content

Commit

Permalink
fix(database): stub out reload script before starting confd
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Apr 1, 2015
1 parent 4340f64 commit 5246753
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions database/bin/boot
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ etcd_set_default password ${PG_USER_PASS:-changeme123}
etcd_set_default name ${PG_USER_DB:-deis}
etcd_set_default bucketName ${BUCKET_NAME}

# stub out the confd reload script before it gets templated
echo '#!/bin/sh' > /usr/local/bin/reload
chmod 0755 /usr/local/bin/reload

# wait for confd to run once and install initial templates
until confd -onetime -node $ETCD -confdir /app --interval 5 --quiet; do
echo "database: waiting for confd to write initial templates..."
Expand Down

0 comments on commit 5246753

Please sign in to comment.