Compare commits

...

7 Commits

Author SHA1 Message Date
“Louis
2a7e7cb3d2 Bash Utilisateur 2022-03-31 10:08:40 +02:00
f933da8552 Supprimer 'ap22/dau' 2022-03-31 09:49:21 +02:00
“Louis
718b2b2209 Script Utilisateur 2022-03-31 09:00:41 +02:00
“Louis
e71117fdd0 Merge branch 'master' of http://gitea.lyc-lecastel.fr/uap22-r/GroupeAP 2022-03-31 08:57:41 +02:00
“Louis
6701d70dd8 Creation utilisateur 2022-03-31 08:57:06 +02:00
dee04bbe4a Mise à jour de 'ap22/dau' 2022-03-24 11:13:15 +01:00
ed5f06188d Bash utilisateur 2022-03-24 10:52:40 +01:00
2 changed files with 17 additions and 0 deletions

8
ap22/dau Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -e
set -u
login=$1
password=$(htpasswd -bnBC 10 "$1" "$1")
echo "${password}:${login}:${login}@localhost:${login},user"

9
ap22/dau-ap22 Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
set -u
./dau louis >> /var/www/html/doku/conf/users.auth.php
./dau johan >> /var/www/html/doku/conf/users.auth.php
./dau elio >> /var/www/html/doku/conf/users.auth.php
./dau hadrien >> /var/www/html/doku/conf/users.auth.php
./dau thomas >> /var/www/html/doku/conf/users.auth.php