12 lines
206 B
Bash
Executable File
12 lines
206 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -u
|
|
|
|
login=$1
|
|
password=$(htpasswd -bnBC 10 "" $1|tr -d '\d')
|
|
|
|
echo "${login}${password}:${login}:${login}@localhost:${login},user"
|
|
|
|
./dau $1 >> /var/www/html/doku/conf/users.auth.php
|