Quicker dev with more scripts

This commit is contained in:
Quentin
2020-11-20 20:50:43 +01:00
parent b9e6b007a3
commit 993f9d73b1
5 changed files with 59 additions and 23 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
SCRIPT_FOLDER="`dirname \"$0\"`"
REPO_FOLDER="${SCRIPT_FOLDER}/../"
GARAGE_DEBUG="${REPO_FOLDER}/target/debug/"
GARAGE_RELEASE="${REPO_FOLDER}/target/release/"
PATH="${GARAGE_DEBUG}:${GARAGE_RELEASE}:$PATH"
garage status \
| grep UNCONFIGURED \
| grep -Po '^[0-9a-f]+' \
| while read id; do
garage node configure -d dc1 -n 100 $id
done