From 2199898b1b177aaf1cc3c5374d4f48cdf63560d8 Mon Sep 17 00:00:00 2001 From: "nicolas.fort" Date: Fri, 29 Mar 2024 16:00:13 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'zimbra/Migration/2?= =?UTF-8?q?=5Fimport=5Faccounts.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zimbra/Migration/2_import_accounts.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zimbra/Migration/2_import_accounts.sh b/zimbra/Migration/2_import_accounts.sh index cc9e047..87460c2 100644 --- a/zimbra/Migration/2_import_accounts.sh +++ b/zimbra/Migration/2_import_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 "Importation des comptes :" PASSWORDS="passwords"