diff options
| -rwxr-xr-x | archsetup | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -264,6 +264,11 @@ create_user () { display "task" "assigning the password" echo "$username:$password" | chpasswd # any text is allowable! be careful! + display "task" "adding to appropriate groups" + (usermod -aG \ + sys,adm,network,scanner,power,uucp,audio,lp,rfkill,video,storage,optical,users \ + "$username" >> "$logfile" 2>&1) || error "crash" "adding $username to groups" "$?" + display "task" "configuring shell" # zsh cache required: $username will install via yay; zsh will run those commands mkdir -p "/home/$username/.cache/zsh/" | tee -a "$logfile" |
