Browse Source

Mise à jour de 'zimbra/Migration/5_exports_filters_and_sig.sh'

master
nicolas.fort 9 months ago
parent
commit
46bcacc222
  1. 7
      zimbra/Migration/5_exports_filters_and_sig.sh

7
zimbra/Migration/5_exports_filters_and_sig.sh

@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash
RCODE=$? RCODE=$?
if [ ! whoami = "zimbra" ]; then
echo "Le user doit être zimbra, pas root ! "
exit 1;
fi
echo "Export des Filtres" echo "Export des Filtres"
for user in `cat /opt/zimbra/nfsbackup/migration/accounts/users.txt`; do echo "Exporting Filters : $user" ; zmprov ga $user zimbraMailSieveScript > filters/$user-filters.txt ;done for user in `cat /opt/zimbra/nfsbackup/migration/accounts/users.txt`; do echo "Exporting Filters : $user" ; zmprov ga $user zimbraMailSieveScript > filters/$user-filters.txt ;done
sed -i -e "1d" /opt/zimbra/nfsbackup/migration/filters/* sed -i -e "1d" /opt/zimbra/nfsbackup/migration/filters/*

Loading…
Cancel
Save