cherrypick/healthcheck.sh
파링 0ba5cb31b4
fix(healthcheck): use default commands instead of yq
this removes yq command and uses grep and awk to get port
2023-02-05 18:38:57 +09:00

5 lines
128 B
Bash

#!/bin/bash
PORT=$(grep '^port:' example.yml | awk 'NR==1{print $2; exit}')
curl -s -S -o /dev/null "http://localhost:${PORT}"