15 lines
632 B
Bash
15 lines
632 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
test "${PATIENT_RELEASE_APPROVED:-}" = patient-session-20260918
|
|
release=/home/ps/patient-session-20260918
|
|
cd "$release"
|
|
python3 patient_server_guard.py deployed > deployed-patient-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
|