jjb
This commit is contained in:
parent
04bb496e71
commit
590b88c3fd
12
sisr1/tp04-scripts-admin/createLogins.sh
Normal file
12
sisr1/tp04-scripts-admin/createLogins.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
fichier="./Users.csv"
|
||||||
|
|
||||||
|
while read ligne #définit la variable "ligne" comme le contenu de la ligne du fichier en cours de lecture
|
||||||
|
do
|
||||||
|
metier=$(echo $ligne | cut -d "," -f5)
|
||||||
|
if [[ $(grep $metier /etc/group) == "" ]] ; then
|
||||||
|
groupadd $metier
|
||||||
|
fi
|
||||||
|
|
||||||
|
done < $fichier
|
5
sisr1/tp04-scripts-admin/gitpush.sh
Normal file
5
sisr1/tp04-scripts-admin/gitpush.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
message=$1
|
||||||
|
git add .
|
||||||
|
git commit -m "$message"
|
||||||
|
git push -u https://charlie.alves@gitea.lyc-lecastel.fr/charlie.alves/siotp.git
|
Loading…
x
Reference in New Issue
Block a user