From 88d0a6bf94f2bda0fa57e287674cadb0d8e4f4c1 Mon Sep 17 00:00:00 2001 From: "nicolas.fort" Date: Fri, 29 Mar 2024 15:46:17 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'zimbra/Migration/3?= =?UTF-8?q?=5Fexports=5Fmailboxes.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zimbra/Migration/3_exports_mailboxes.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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`;