24,7 → 24,7 |
|
[ -f "$passwdfile" ] || touch "$passwdfile" |
|
[ $(grep -c "${username}:${REALM}:" "$passwdfile") ] && existing_user=0 || existing_user=1 |
grep -q "${username}:${REALM}:" "$passwdfile" && existing_user=1 || existing_user=0 |
|
if [ $existing_user -eq 1 ]; then |
echo "Changing password for user $username in realm $REALM" |
138,6 → 138,18 |
else |
profil="$2" |
fi |
|
if ! echo $ALL_PROFILS | grep -qw $profil |
then |
if [ $Lang == "fr" ] |
then |
echo "Le profil indiqué n'existe pas" |
else |
echo "The given profile doesn't exist" |
fi |
exit 1 |
fi |
|
if [ $Lang == "fr" ] |
then |
echo -n "Entrez le nom du compte à créer (profil '$profil') : " |
158,7 → 170,7 |
else |
echo "This account already exists" |
fi |
exit 0 |
exit 1 |
fi |
done |
done |