You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-healthcheck.sh 267B

123456789
  1. #!/usr/bin/env bash
  2. SYSPROPS_FILE=${DATADIR}/system.properties
  3. if [ -f "${SYSPROPS_FILE}" ]; then
  4. SYSPROPS_PORT=`grep "^unifi.https.port=" ${SYSPROPS_FILE} | cut -d'=' -f2`
  5. fi
  6. PORT=${SYSPROPS_PORT:-8443}
  7. curl --max-time 5 -kILs --fail https://localhost:${PORT}