add user script also adds to .htpasswd
This commit is contained in:
parent
138613bac2
commit
e55fbb5b67
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ if(~ $"user_name '' || ~ $"user_pass '')
|
|||
|
||||
mkdir etc/users/$user_name
|
||||
mkpasswd $user_pass > etc/users/$user_name/password
|
||||
htpasswd -b /etc/lighttpd/.htpasswd $user_name $user_pass
|
||||
|
||||
if(! ~ $#user_groups 0)
|
||||
for(g in $user_groups) {
|
||||
|
|
Loading…
Reference in a new issue