test
This commit is contained in:
parent
6d7b9fc0c5
commit
597346c2ed
16
sisr1/tp04_scripts_admin/createGroups.sh
Normal file
16
sisr1/tp04_scripts_admin/createGroups.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
fichier=./Users.csv
|
||||
|
||||
while read ligne #lis tous les lignes
|
||||
do
|
||||
|
||||
#A chaque alitéartion, stocker le métier dans $metier
|
||||
metier=$(echo $ligne | cut -d "," -f5)
|
||||
echo $metier
|
||||
if [[ $(grep $metier /etc/group) == "" ]] ; then
|
||||
groupadd $metier
|
||||
fi
|
||||
|
||||
|
||||
done < $fichier
|
@ -1,16 +0,0 @@
|
||||
#!bin/bash
|
||||
|
||||
fichier=./Users.csv
|
||||
|
||||
while read ligne #lis tous les lignes
|
||||
do
|
||||
|
||||
#A chaque alitéartion, stocker le métier dans $metier
|
||||
metier=$(echo $ligne | cut -d "," -f5)
|
||||
echo $metier
|
||||
if [[ $(grep $metier /etc/group) == "" ]] ; then
|
||||
groupadd $metier
|
||||
fi
|
||||
|
||||
|
||||
done < $fichier
|
6
sisr1/tp04_scripts_admin/gitpush.sh
Normal file
6
sisr1/tp04_scripts_admin/gitpush.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
message=$1
|
||||
git add .
|
||||
git commit -m "$message"
|
||||
git push -u https://timeo.collado@gitea.lyc-lecastel.fr/timeo.collado/siotp.git
|
Loading…
x
Reference in New Issue
Block a user