From 9c3d24f88b700da89716531673544d7f907c7c86 Mon Sep 17 00:00:00 2001 From: mboudet Date: Fri, 12 Apr 2024 12:24:36 +0000 Subject: [PATCH] Fixes --- entrypoint.sh | 2 ++ scripts/pre-launch.d/08script_user | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 64b6aac..abeb4f6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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_-]+$" diff --git a/scripts/pre-launch.d/08script_user b/scripts/pre-launch.d/08script_user index fcb4324..c237637 100755 --- a/scripts/pre-launch.d/08script_user +++ b/scripts/pre-launch.d/08script_user @@ -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]},"