@ -1,5 +1,11 @@
#!/bin/bash
RCODE=$?
if [ ! whoami = "zimbra" ]; then
echo "Le user doit être zimbra, pas root ! "
exit 1;
fi
echo "Import des Filtres"
for user in `cat /opt/zimbra/nfsbackup/migration/accounts/users.txt`; do echo "Importation des filtres : $user"; zmprov ma $user zimbraMailSieveScript "`cat /opt/zimbra/nfsbackup/migration/filters/$user-filters.txt`";done