update-renater-meta.sh: utilise le script init.d pour appeler authentic2-ctl

This commit is contained in:
Benjamin Dauvergne 2015-02-06 11:54:35 +01:00
parent 71f8a55e48
commit f9d2d7ec32
1 changed files with 4 additions and 6 deletions

View File

@ -68,13 +68,11 @@ cat <<EOF >$FIXTURE_TMP
}]
EOF
chown authentic $METADATA_TMP $FILTERS_TMP $FIXTURE_TMP
# Load fixture
authentic2-ctl loaddata -v0 $FIXTURE_TMP
# Fix wrong naming of email attribute
sed -i 's/\<email\>/mail/' $FILTERS_TMP
# Load fixture
/etc/init.d/authentic2 manage loaddata -v0 $FIXTURE_TMP
# Load metadataas
authentic2-ctl sync-metadata --source=renater --shibboleth-attribute-filter-policy=$FILTERS_TMP --sp -v1 $METADATA_TMP
/etc/init.d/authentic2 manage sync-metadata --source=renater --shibboleth-attribute-filter-policy=$FILTERS_TMP --sp -v1 $METADATA_TMP