bao operator init >> /tmp/init.txt

This commit is contained in:
miwr 2025-03-24 13:38:15 +01:00
parent 8f28c30364
commit 8d7a7cb1bf

View file

@ -40,7 +40,7 @@ server:
- -c
- |
sleep 10
# bao operator init >> /tmp/init.txt
bao operator init >> /tmp/init.txt
# cat /tmp/init.txt | grep "Key " | awk '{print $NF}' | xargs -I{} bao operator unseal {}
# echo $(grep "Initial Root Token:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/initial_token.txt
# echo $(grep "Unseal Key 1:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key1.txt