Browse Source

new: [apache] add ``check-external-https`` indirect action

pull/48/head
Valentin Lab 1 week ago
parent
commit
0ee4f0ea44
  1. 30
      apache/actions/relations/publish-dir/check-external-https
  2. 1
      apache/actions/relations/web-proxy/check-external-https

30
apache/actions/relations/publish-dir/check-external-https

@ -0,0 +1,30 @@
#!/bin/bash
# compose: no-hooks
## Load action gets a first argument a FILE/DIRECTORY/URL holding the necessary files.
##
##
if [ -z "$SERVICE_DATASTORE" ]; then
echo "This script is meant to be run through 'compose' to work properly." >&2
exit 1
fi
usage="$exname [-h|--help]"
while [ "$1" ]; do
case "$1" in
"--help"|"-h")
print_usage
exit 0
;;
*)
err "Unexpected argument '$1'."
exit 1
;;
esac
shift
done
url=$(relation-get url)
curl -Isf "$url" --max-time 5 >/dev/null

1
apache/actions/relations/web-proxy/check-external-https

@ -0,0 +1 @@
../publish-dir/check-external-https
Loading…
Cancel
Save