⇤ ← Revision 1 as of 2010-08-15 12:53:02
471
Comment:
|
473
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
#!/bin/sh | #!/bin/bash |
Here a little script you can use to generate user accounts if you're running with AuthMode=Registered:
#!/bin/bash BITLBEE_BIN=/usr/sbin/bitlbee echo -n 'Username: ' read user echo -n 'Password: ' read -s pwd; echo echo -n 'Repeat password: ' read -s pwd2; echo if [ "$pwd" != "$pwd2" ]; then echo "Passwords don't match." >&2 exit 1 fi hash=$($BITLBEE_BIN -x hash "$pwd") echo "<user nick='$user' password='$hash' version='1'/>"