the command is bao not openbao 🤦

Signed-off-by: jessebot <jessebot@linux.com>
This commit is contained in:
jessebot 2024-05-21 08:27:40 +02:00 committed by Nathan A Phelps
parent 2c9d040059
commit 754c4ee94d

View file

@ -27,18 +27,18 @@ spec:
- /bin/sh
- -c
- |
echo "Checking for sealed info in 'openbao status' output"
echo "Checking for sealed info in 'bao status' output"
ATTEMPTS=10
n=0
until [ "$n" -ge $ATTEMPTS ]
do
echo "Attempt" $n...
openbao status -format yaml | grep -E '^sealed: (true|false)' && break
bao status -format yaml | grep -E '^sealed: (true|false)' && break
n=$((n+1))
sleep 5
done
if [ $n -ge $ATTEMPTS ]; then
echo "timed out looking for sealed info in 'openbao status' output"
echo "timed out looking for sealed info in 'bao status' output"
exit 1
fi