Launch offer — 40% off every tier for a limited time. Prices shown are already reduced.
Stacks / Code / Lodestar / verify.sh
verify.sh 29 lines · 819 B · bash
#!/usr/bin/env bash
set -uo pipefail
pass=0; fail=0

check() {
  local n="$1" u="$2" c
  c=$(curl -s -o /dev/null -w '%{http_code}' --max-time 8 "$u" || echo 000)
  if [ "$c" != "000" ] && [ "$c" -lt 500 ]; then
    printf '  %-12s OK   (%s)\n' "$n" "$c"; pass=$((pass+1))
  else
    printf '  %-12s FAIL (%s)\n' "$n" "$c"; fail=$((fail+1))
  fi
}

echo 'Checking services...'
check bookstack    "http://localhost:6875/"
check kanboard     "http://localhost:8000/"
check grist        "http://localhost:8484/"
check drawio       "http://localhost:8080/"
check syncthing    "http://localhost:8384/"
check filebrowser  "http://localhost:8082/"
check zulip        "http://localhost:8083/"
check jitsi        "http://localhost:8443/"
check actual       "http://localhost:5006/"

echo
echo "passed=$pass failed=$fail"
exit 0