Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet committed Apr 12, 2024
1 parent 5298d45 commit 9c3d24f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

function run_scripts () {
SCRIPTS_DIR="/scripts/$1.d"
SCRIPT_FILES_PATTERN="^${SCRIPTS_DIR}/[0-9][0-9][a-zA-Z0-9_-]+$"
Expand Down
2 changes: 1 addition & 1 deletion scripts/pre-launch.d/08script_user
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if [ -n "$OTHER_GID" ]; then
IFS=',' read -ra OTHER_GID_ARRAY <<< "$OTHER_GID"
IFS=',' read -ra OTHER_RUN_GROUP_ARRAY <<< "$OTHER_RUN_GROUP"
length=${#OTHER_GID_ARRAY[@]}
groups="--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]},"
Expand Down

0 comments on commit 9c3d24f

Please sign in to comment.