Use adduser instead of usermod

This commit is contained in:
Fierelier 2022-09-21 12:46:14 +02:00
parent 92af23a180
commit e6e95c591c

View File

@ -25,7 +25,7 @@ while true; do
( (
set -e set -e
adduser --gecos "" "$NEW_USER" adduser --gecos "" "$NEW_USER"
usermod -a -G sudo "$NEW_USER" adduser "$NEW_USER" "sudo"
) )
if [ "$?" == "0" ]; then if [ "$?" == "0" ]; then
break break