generate an index file just to avoid 403

This commit is contained in:
Leif Johansson 2018-02-12 00:09:13 +01:00
parent 9dfe3f8ffc
commit a01083da09

View file

@ -15,6 +15,15 @@ mkdir -p $target && (
WGET_ARGS="--mirror --no-host-directories -q"
idx_obj=".well-known/webfinger?rel=urn:oasis:names:tc:SAML:2.0:metadata"
wget $WGET_ARGS "$base/$idx_obj" && jq -r '.links[].href' < "$idx_obj" | wget $WGET_ARGS -i -
cat>$dir/index.html<<EOF
<html><head><title>Metadata</title></head>
<body>
<ul>
<li><a href="/entities">/entities</a></li>
</ul>
</body>
</html>
EOF
)
rsync -az $RSYNC_ARGS --delete $dir/ $target/