Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

287 B
Raw Blame
"""Only check HTTP availability; this does not create DAV collections."""
import sys
import urllib.request

try:
    with urllib.request.urlopen("http://127.0.0.1:5232/.web/", timeout=5) as response:
        sys.exit(0 if response.status == 200 else 1)
except Exception:
    sys.exit(1)