You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
626 B
19 lines
626 B
#!/bin/bash
|
|
|
|
if [[ -f requests ]]
|
|
then
|
|
source ~/.synapse/bin/activate
|
|
while read ligne
|
|
do
|
|
user=$(echo $ligne | cut -d":" -f1)
|
|
pass=$(echo $ligne | cut -d":" -f2)
|
|
mail=$(echo $ligne | cut -d":" -f3)
|
|
# register_new_matrix_user -c homeserver.yaml -u ${user} -p ${pass} -a "notadmin" https://localhost:8008
|
|
echo register_new_matrix_user -c homeserver.yaml -u ${user} -p ${pass} -a "notadmin" https://localhost:8008
|
|
# echo "$user / $pass" | mailx -s "Vos identifiants de connexion Matrix" $mail
|
|
done < requests
|
|
else
|
|
echo "Fichier requests introuvable"
|
|
exit 1
|
|
fi
|
|
|
|
|