add user script also adds to .htpasswd

This commit is contained in:
Quentin W 2024-07-23 10:37:00 -04:00
parent 138613bac2
commit e55fbb5b67

View file

@ -24,6 +24,7 @@ if(~ $"user_name '' || ~ $"user_pass '')
mkdir etc/users/$user_name mkdir etc/users/$user_name
mkpasswd $user_pass > etc/users/$user_name/password mkpasswd $user_pass > etc/users/$user_name/password
htpasswd -b /etc/lighttpd/.htpasswd $user_name $user_pass
if(! ~ $#user_groups 0) if(! ~ $#user_groups 0)
for(g in $user_groups) { for(g in $user_groups) {