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