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