This repository has been archived on 2023-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
link-validator/overlay/bin/link-validator

17 lines
401 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
2020-05-31 21:43:54 +02:00
set -eo pipefail
# shellcheck disable=SC1091
. /usr/local/lib/log.sh
URL="127.0.0.1:$LINK_VALIDATOR_SERVER_PORT"
caddy file-server --root "$LINK_VALIDATOR_BASE_DIR" --listen "$URL" &
log_info "Wait for web server on '$URL'"
/usr/local/bin/wait-for "$URL"
2022-11-04 09:35:59 +01:00
log_info "Start link validation"
exec retry -t "$LINK_VALIDATOR_RETRIES" -m 5 -- "/usr/local/bin/muffet $* http://$URL"