Skip to content

Commit 7ca1b46

Browse files
author
Gabriel Monroy
committed
fix(database): use ETCD host during database recovery detection
1 parent 6839b59 commit 7ca1b46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

database/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fi
6565

6666
# ensure WAL log bucket exists
6767
envdir /etc/wal-e.d/env /app/bin/create_bucket "${BUCKET_NAME}"
68-
INIT_ID=$(etcdctl get "$ETCD_PATH/initId" 2> /dev/null || echo none)
68+
INIT_ID=$(etcdctl get -C "$ETCD" "$ETCD_PATH/initId" 2> /dev/null || echo none)
6969
echo "database: expecting initialization id: $INIT_ID"
7070

7171
initial_backup=0

0 commit comments

Comments
 (0)