Skip to content

Commit

Permalink
fix array variables
Browse files Browse the repository at this point in the history
  • Loading branch information
loraine-gueguen committed May 22, 2023
1 parent 63c990b commit 727c79f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pre-launch.d/08script_user
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ if [ -n "$OTHER_GID" ]; then
length=${#OTHER_GID_ARRAY[@]}
GROUPS="--groups "
for (( i=0; i<$length; i++ )); do
getent group $OTHER_RUN_GROUP_ARRAY[i] &> /dev/null || groupadd --gid $OTHER_GID_ARRAY[i] $OTHER_RUN_GROUP_ARRAY[i]
GROUPS+="$OTHER_GID_ARRAY[i],"
getent group ${OTHER_RUN_GROUP_ARRAY[i]} &> /dev/null || groupadd --gid ${OTHER_GID_ARRAY[i]} ${OTHER_RUN_GROUP_ARRAY[i]}
GROUPS+="${OTHER_GID_ARRAY[i]},"
done
otherGIDoption=${GROUPS::-1}
fi
Expand Down

0 comments on commit 727c79f

Please sign in to comment.