From 41fccbede35fff50df07dda1ac6a348af06ff681 Mon Sep 17 00:00:00 2001 From: Doug Le Tough Date: Sat, 22 Jul 2017 06:07:42 +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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/expl_deploy_socle.sh b/bin/expl_deploy_socle.sh index 5038372..81917a3 100755 --- a/bin/expl_deploy_socle.sh +++ b/bin/expl_deploy_socle.sh @@ -52,6 +52,12 @@ # Initialisation de l'environement #----------------------------------------------------------------------- +if [ ! $(id -u) -eq 0 ]; then + ERROR="Seul l'utilisateur root peut utiliser ce script" + echo -e "\033[91m${ERROR}\033[0m" + exit 1 +fi + source /etc/profile.d/tetalab.sh if [ ! -f ${NC_EXPL_CFG}/init.conf ]