X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fdistro-install-common%2Fend;h=ec0d1cf9ad633ac60600b77394c579187c4ca32f;hp=e764c32ea67367e21a887e518926694071f999d3;hb=845c2b9e9e7e25b3dfa3d7f750d0acae0e50caf4;hpb=4acdd54dd395d63eef73778547fa8cc119ac6fca diff --git a/fai/config/distro-install-common/end b/fai/config/distro-install-common/end index e764c32..ec0d1cf 100755 --- a/fai/config/distro-install-common/end +++ b/fai/config/distro-install-common/end @@ -41,8 +41,9 @@ chpw() { fi } au() { # add user. i don't use adduser for portability - if ! $ROOTCMD getent passwd ${@: -1}; then - $ROOTCMD useradd -Um -s /bin/bash $@ + local user=${@: -1} + if ! $ROOTCMD getent passwd $user; then + $ROOTCMD useradd -c $user -Um -s /bin/bash $@ fi }