Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down