From 7ca1b46b8b4adf8898b69ad8e56efb1db51a42d9 Mon Sep 17 00:00:00 2001 From: Gabriel Monroy Date: Thu, 3 Sep 2015 10:28:36 -0600 Subject: [PATCH] fix(database): use ETCD host during database recovery detection --- database/bin/boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/bin/boot b/database/bin/boot index fb43a8d50b..b146dc9f7a 100755 --- a/database/bin/boot +++ b/database/bin/boot @@ -65,7 +65,7 @@ fi # ensure WAL log bucket exists envdir /etc/wal-e.d/env /app/bin/create_bucket "${BUCKET_NAME}" -INIT_ID=$(etcdctl get "$ETCD_PATH/initId" 2> /dev/null || echo none) +INIT_ID=$(etcdctl get -C "$ETCD" "$ETCD_PATH/initId" 2> /dev/null || echo none) echo "database: expecting initialization id: $INIT_ID" initial_backup=0