18 lines
248 B
Bash
Executable File
18 lines
248 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
. "$(dirname "$0")/flags.sh"
|
|
|
|
main() {
|
|
parse_flags "$@"
|
|
|
|
if [ -n "$json" ]; then
|
|
printf '{"status":"ok","checks":1}\n'
|
|
exit 0
|
|
fi
|
|
|
|
[ -n "$quiet" ] || printf 'OK - all healthchecks passed\n'
|
|
exit 0
|
|
}
|
|
|
|
main "$@"
|