#!/bin/bash

vault operator init > /var/vault/init.output
cat /var/vault/init.output | grep -E 'Initial Root Token:' | awk '{print $4}' > /var/vault/token
cat /var/vault/init.output | grep -E 'Unseal Key' | awk '{print $4}' > /var/vault/keys
