update-renater-metadata.sh: corrige la création de la politique par défaut

This commit is contained in:
Benjamin Dauvergne 2015-02-05 17:00:16 +01:00
parent fe0c8b88fd
commit 2a109c0bec
1 changed files with 6 additions and 3 deletions

View File

@ -7,7 +7,7 @@ BASEDIR=`dirname $0`
METADATA_TMP=`tempfile`
FILTERS_TMP=`tempfile`
CERTIFICATE_TMP=`tempfile`
FIXTURE_TMP=`tempfile`
FIXTURE_TMP=`tempfile --suffix=.json`
function cleanup {
rm -f $METADATA_TMP $FILTERS_TMP $CERTIFICATE_TMP $FIXTURE_TMP
@ -59,14 +59,17 @@ cat <<EOF >$FIXTURE_TMP
"pk": [
"Default"
],
"model": "saml.libertyproviderpolicy",
"model": "saml.spoptionsidppolicy",
"fields": {
"name": "Default",
"authn_request_signature_check_hint": 2
"enabled": true,
"authn_request_signed": false
}
}]
EOF
chown authentic $METADATA_TMP $FILTERS_TMP $FIXTURE_TMP
# Load fixture
authentic2-ctl loaddata -v0 $FIXTURE_TMP