16 lines
659 B
Bash
16 lines
659 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
test "${ORDER_RELEASE_APPROVED:-}" = order-mcp-20260922
|
|
release=/home/ps/order-mcp-20260922
|
|
cd "$release"
|
|
python3 order_server_guard.py deployed > deployed-order-verification.json
|
|
curl -fsS -o /dev/null http://127.0.0.1:18766/api/v2/health
|
|
curl -fsS -o /dev/null http://127.0.0.1:18770/health
|
|
docker exec -i im-admin-api-1 python - <<'PY'
|
|
import sqlite3, json
|
|
with sqlite3.connect('file:/data/backend.db?mode=ro', uri=True, timeout=30) as c:
|
|
assert c.execute('PRAGMA quick_check').fetchone()[0] == 'ok'
|
|
print(json.dumps({'databaseQuickCheck': 'ok', 'patientDataRead': False}))
|
|
PY
|
|
cat deployed-order-verification.json
|