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.
2022-05-18 17:42:55 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-05-31 21:43:54 +02:00
|
|
|
set -eo pipefail
|
|
|
|
|
2022-05-18 17:42:55 +02:00
|
|
|
# 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"
|
|
|
|
|
|
|
|
log_info "Start linkcheck"
|
|
|
|
exec /usr/local/bin/linkcheck "$@" "$URL"
|