From 96168cee6610513013dfe6e48577ba07bec77452 Mon Sep 17 00:00:00 2001 From: "jeremy.thomas" Date: Wed, 19 Feb 2025 16:30:18 +0100 Subject: [PATCH] =?UTF-8?q?Premi=C3=A8re=20version=20pour=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sisr1/tp04_scripts_admin/createGroups.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sisr1/tp04_scripts_admin/createGroups.sh b/sisr1/tp04_scripts_admin/createGroups.sh index ab9f020..f400c82 100644 --- a/sisr1/tp04_scripts_admin/createGroups.sh +++ b/sisr1/tp04_scripts_admin/createGroups.sh @@ -6,6 +6,8 @@ while read ligne do # A chaque itération, stocker le métier dans $metier metier=$(echo $ligne | cut -d "," -f5) + # On regarde si les group existe + tail /etc/group # Vérification de la présence du groupe Accountant -> ajout de la fonction "Accountant" à $groups if [[ $(echo $line | grep "Accountant") == "" ]] ; then groupadd accountant @@ -20,5 +22,7 @@ do if [[ $(echo $line | grep "Production") == "" ]] ; then groupadd production fi - echo $metier + # On regarde si les groups ont été créé + tail /etc/group + # echo $metier done < $file \ No newline at end of file