From a61b29fc866b6a5a091474b94a6538dc7fad17a9 Mon Sep 17 00:00:00 2001 From: Doug Le Tough Date: Sat, 22 Jul 2017 06:39:11 +0200 Subject: [PATCH] =?UTF-8?q?"M=C3=A0J=20expl=5Fdeploy=5Fsocle.sh"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/expl_deploy_socle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/expl_deploy_socle.sh b/bin/expl_deploy_socle.sh index 89e6b69..edb8e20 100755 --- a/bin/expl_deploy_socle.sh +++ b/bin/expl_deploy_socle.sh @@ -49,8 +49,8 @@ # Initialisation de l'environement #----------------------------------------------------------------------- -if [ ! $(id -u) -eq 0 ]; then - ERROR="Seul l'utilisateur root peut utiliser ce script" +if [ "${USER" != "asr" ]; then + ERROR="Seul l'utilisateur asr peut utiliser ce script" echo -e "\033[91m${ERROR}\033[0m" exit 1 fi