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
Robert Kaussow 058284c17d
All checks were successful
continuous-integration/drone/push Build is passing
refactor: switch to filiph/linkcheck (#76)
2022-05-18 17:42:55 +02:00

17 lines
350 B
Bash
Executable File

#!/usr/bin/env bash
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"
log_info "Start linkcheck"
exec /usr/local/bin/linkcheck "$@" "$URL"