cleanup
This commit is contained in:
parent
ac4d75293e
commit
737d29c661
1 changed files with 4 additions and 4 deletions
|
@ -4,8 +4,8 @@ base=$1
|
|||
target=$2
|
||||
dir=`mktemp -d`
|
||||
|
||||
if [ -z $MIRROR_MDQ_POST ]; then
|
||||
MIRROR_MDQ_POST=/etc/mirror-mdq/post.d
|
||||
if [ "x${MIRROR_MDQ_POST}" = "x" ]; then
|
||||
export MIRROR_MDQ_POST="/etc/mirror-mdq/post.d"
|
||||
fi
|
||||
|
||||
function cleanup() {
|
||||
|
@ -19,8 +19,8 @@ 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 -
|
||||
if [ -d $MIRROR_MDQ_POST ]; then
|
||||
env SOURCE=$1 TARGET=$target IDX_OBJ=$idx_obj run-parts $MIRROR_MDQ_POST
|
||||
if [ -d "${MIRROR_MDQ_POST}" ]; then
|
||||
env SOURCE=$1 TARGET=$target IDX_OBJ=$idx_obj run-parts ${MIRROR_MDQ_POST}
|
||||
fi
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue