#!/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