Skip to content
Snippets Groups Projects
Commit 65ea3bfe authored by Bussi Andrea's avatar Bussi Andrea
Browse files

install-labmanager: myuseradd: fix the error when a gid was specified.

parent e5889f93
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ myuseradd() { ...@@ -49,7 +49,7 @@ myuseradd() {
fi fi
R_GID="" R_GID=""
if [ "z$3" != "z" ]; then if [ "z$3" != "z" ]; then
R_GID="$3" R_GID="-g $3"
fi fi
useradd -b /local -m ${R_UID} -U ${R_GID} -r ${R_USER} useradd -b /local -m ${R_UID} -U ${R_GID} -r ${R_USER}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment