update-renater-meta.sh: utilise le script init.d pour appeler authentic2-ctl
This commit is contained in:
parent
71f8a55e48
commit
f9d2d7ec32
|
@ -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
|
||||
|
|
Reference in New Issue