aboutsummaryrefslogtreecommitdiff
path: root/script/dev-configure.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-10-19 17:31:04 +0200
committerAlex Auvolat <alex@adnab.me>2021-10-19 23:40:21 +0200
commitd9c52e9a9c260ee2ec3350a253f6e6e8ae966b26 (patch)
treeecea8cd9be97e529ffc2e18f7fee8e88b6441343 /script/dev-configure.sh
parent550ce7db2a43ddff310df710b78aab4a11436a2b (diff)
downloadgarage-d9c52e9a9c260ee2ec3350a253f6e6e8ae966b26.tar.gz
garage-d9c52e9a9c260ee2ec3350a253f6e6e8ae966b26.zip
Update documentation: real_world.md
Diffstat (limited to 'script/dev-configure.sh')
-rwxr-xr-xscript/dev-configure.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/dev-configure.sh b/script/dev-configure.sh
index 72fb67ea..add9a96a 100755
--- a/script/dev-configure.sh
+++ b/script/dev-configure.sh
@@ -11,7 +11,7 @@ PATH="${GARAGE_DEBUG}:${GARAGE_RELEASE}:${NIX_RELEASE}:$PATH"
sleep 5
RETRY=120
-until garage -c /tmp/config.1.toml status 2>&1|grep -q Healthy ; do
+until garage -c /tmp/config.1.toml status 2>&1|grep -q HEALTHY ; do
(( RETRY-- ))
if (( RETRY <= 0 )); then
echo "garage did not start in time, failing."
@@ -22,7 +22,7 @@ until garage -c /tmp/config.1.toml status 2>&1|grep -q Healthy ; do
done
garage -c /tmp/config.1.toml status \
- | grep UNCONFIGURED \
+ | grep 'NO ROLE' \
| grep -Po '^[0-9a-f]+' \
| while read id; do
garage -c /tmp/config.1.toml node configure -z dc1 -c 1 $id