9 lines
261 B
Bash
Executable File
9 lines
261 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
PORT="${AIOS_WEBOPS_PORT:-18081}"
|
|
python3 - <<PY
|
|
import urllib.request, os
|
|
port=os.environ.get('AIOS_WEBOPS_PORT','18081')
|
|
print(urllib.request.urlopen(f'http://127.0.0.1:{port}/health/ready',timeout=5).read().decode())
|
|
PY
|