diff --git a/zimbra/Migration/3_exports_mailboxes.sh b/zimbra/Migration/3_exports_mailboxes.sh index 481e416..6a5144e 100644 --- a/zimbra/Migration/3_exports_mailboxes.sh +++ b/zimbra/Migration/3_exports_mailboxes.sh @@ -1,5 +1,11 @@ #!/bin/bash RCODE=$? +if [ ! whoami = "zimbra" ]; then + + echo "Le user doit ĂȘtre zimbra, pas root ! " + exit 1; + +fi echo "Export mailboxes :" for user in `cat /opt/zimbra/nfsbackup/migration/accounts/users.txt`;