the command is bao not openbao 🤦
Signed-off-by: jessebot <jessebot@linux.com>
This commit is contained in:
parent
2c9d040059
commit
754c4ee94d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue