Fix syntax error in uid_gid_manage.sh file

Related-Bug: #2001626

Signed-off-by: Amol Kahat <amolkahat@gmail.com>
Change-Id: I53fa23723db0a334b2afb58e0a381439ac535a74
This commit is contained in:
Amol Kahat 2023-01-04 18:22:56 +05:30
parent 6c8fccb888
commit d2dc6e4cda
No known key found for this signature in database
GPG Key ID: FDD3BA6C832D7715

View File

@ -116,7 +116,7 @@ for _USER_TO_CREATE in $_USERS_TO_CREATE; do
_EXTRA_PERMS="&& mkdir -p $_HOME_DIR && chown -R $_UID:$_GID $_HOME_DIR"
fi
# --append only exists with usermod
[ ! -z $_EXTRA_GROUPS_ARG ] && _EXTRA_GROUPS_ARG="--append $_EXTRA_GROUPS_ARG"
[[ ! -z $_EXTRA_GROUPS_ARG ]] && _EXTRA_GROUPS_ARG="--append $_EXTRA_GROUPS_ARG"
_USERADD_CMD="usermod ${_HOME_ARGS} --gid $_GID --uid $_UID ${_EXTRA_GROUPS_ARG} $_NAME ${_EXTRA_PERMS}"
else
_USERADD_CMD="useradd -l ${_HOME_ARGS} --shell /usr/sbin/nologin --uid $_UID --gid $_GID ${_EXTRA_GROUPS_ARG} $_NAME"