|
@ -1,11 +1,12 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
RCODE=$? |
|
|
RCODE=$? |
|
|
if [ ! whoami = "zimbra" ]; then |
|
|
|
|
|
|
|
|
if [ $(id -u) -eq 0 ] |
|
|
|
|
|
then |
|
|
|
|
|
echo "Ce script ne doit pas être lancé en tant que root" |
|
|
|
|
|
exit 1 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
echo "Le user doit être zimbra, pas root ! " |
|
|
|
|
|
exit 1; |
|
|
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
echo "Export mailboxes :" |
|
|
echo "Export mailboxes :" |
|
|
for user in `cat /opt/zimbra/nfsbackup/migration/accounts/users.txt`; |
|
|
for user in `cat /opt/zimbra/nfsbackup/migration/accounts/users.txt`; |
|
|