Files
mtusi2026lab7/scripts/restart.sh

11 lines
259 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
./scripts/compose.sh restart openbao postgres s3 broker api-a api-b publisher worker recovery
attempt=0
until python3 scripts/bao.py unseal; do
attempt=$((attempt + 1))
test "$attempt" -lt 15
sleep 1
done