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 ]