From e55fbb5b67b11b200b518b6cb4ab49531330dcd0 Mon Sep 17 00:00:00 2001 From: Quentin W Date: Tue, 23 Jul 2024 10:37:00 -0400 Subject: [PATCH] add user script also adds to .htpasswd --- werc/bin/aux/addwuser.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/werc/bin/aux/addwuser.rc b/werc/bin/aux/addwuser.rc index ea3e58e..0259485 100755 --- a/werc/bin/aux/addwuser.rc +++ b/werc/bin/aux/addwuser.rc @@ -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) {