From f9d2d7ec32741bf455f8812798af6516c2498fef Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 6 Feb 2015 11:54:35 +0100 Subject: [PATCH] update-renater-meta.sh: utilise le script init.d pour appeler authentic2-ctl --- update-renater-meta.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/update-renater-meta.sh b/update-renater-meta.sh index 9f3a54d..1b8e5b9 100755 --- a/update-renater-meta.sh +++ b/update-renater-meta.sh @@ -68,13 +68,11 @@ cat <$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/\/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