From b47b4d3c83a07a53e717f2c1fdd3003a49b46ca8 Mon Sep 17 00:00:00 2001 From: Alexey Tsarev Date: Mon, 5 Jan 2026 00:25:22 +0400 Subject: [PATCH] Fix ACCOUNT_UID, ACCOUNT_GROUPS substitute --- scripts/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 87688f2..151150a 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -128,7 +128,7 @@ if [ ! -f "$INITALIZED" ]; then ACCOUNT_NAME=$(echo "$I_ACCOUNT" | cut -d'=' -f1 | sed 's/ACCOUNT_//g' | tr '[:upper:]' '[:lower:]') ACCOUNT_PASSWORD=$(echo "$I_ACCOUNT" | sed 's/^[^=]*=//g') - ACCOUNT_UID=$(env | grep '^UID_'"$ACCOUNT_NAME" | sed 's/^[^=]*=//g') + ACCOUNT_UID=$(env | grep '^UID_'"$ACCOUNT_NAME=" | sed 's/^[^=]*=//g') if [ "$ACCOUNT_UID" -gt 0 ] 2>/dev/null then @@ -161,7 +161,7 @@ if [ ! -f "$INITALIZED" ]; then ACCOUNT_NAME=$(echo "$I_ACCOUNT" | cut -d'=' -f1 | sed 's/ACCOUNT_//g' | tr '[:upper:]' '[:lower:]') # add user to groups... - ACCOUNT_GROUPS=$(env | grep '^GROUPS_'"$ACCOUNT_NAME" | sed 's/^[^=]*=//g') + ACCOUNT_GROUPS=$(env | grep '^GROUPS_'"$ACCOUNT_NAME=" | sed 's/^[^=]*=//g') for GRP in $(echo "$ACCOUNT_GROUPS" | tr ',' '\n' | grep .); do echo ">> ACCOUNT: adding account: $ACCOUNT_NAME to group: $GRP" addgroup "$ACCOUNT_NAME" "$GRP"