generate an index file just to avoid 403
This commit is contained in:
parent
9dfe3f8ffc
commit
a01083da09
1 changed files with 9 additions and 0 deletions
|
@ -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/
|
||||
|
|
Loading…
Add table
Reference in a new issue