From 0af49eae9e88d983047bfcad2dfb5304e3ab9a80 Mon Sep 17 00:00:00 2001 From: "nicolas.fort" Date: Fri, 29 Mar 2024 16:00:29 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'zimbra/Migration/1?= =?UTF-8?q?=5Fexport=5Faccounts.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zimbra/Migration/1_export_accounts.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zimbra/Migration/1_export_accounts.sh b/zimbra/Migration/1_export_accounts.sh index a9f1355..9bc5785 100644 --- a/zimbra/Migration/1_export_accounts.sh +++ b/zimbra/Migration/1_export_accounts.sh @@ -1,11 +1,12 @@ #!/bin/bash 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 "Saisir le domaine :" read DOM