Files

13 lines
484 B
Bash

#!/bin/sh
set -eu
# Restart the stores and the OpenBao node. OpenBao comes back sealed, so the
# documented operator step is to re-run the bootstrap (idempotent unseal)
# before the API replicas need their secrets again.
docker compose --env-file .env restart postgres s3 broker openbao
if command -v py >/dev/null 2>&1; then
py -3 scripts/openbao_bootstrap.py
else
python scripts/openbao_bootstrap.py
fi
docker compose --env-file .env restart api1 api2 api-gw1 api-gw2 worker lb