Don't add user to non-existent groups

This commit is contained in:
rockstable 2022-12-09 21:58:44 +01:00
parent 4552deecb3
commit 094f183b63
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
groups="adm cdrom sudo dip plugdev lpadmin sambashare lxd"
groups="adm cdrom sudo dip plugdev lpadmin"
# add additional user account
if [ -n "$username" ]; then