File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ _all of those variants are automatically build and generated in one go_
5050
5151## Changelogs
5252
53+ * 2026-01-05
54+ * fixed userId handling for similiar starting userids (e.g. ` john johnd joh ` ) and also fixed #171
5355* 2025-11-21
5456 * added ` AVAHI_INTERFACES ` env to control avahi configuration option: ` allow-interfaces `
5557* 2025-09-02
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ if [ ! -f "$INITALIZED" ]; then
128128 ACCOUNT_NAME=$( echo " $I_ACCOUNT " | cut -d' =' -f1 | sed ' s/ACCOUNT_//g' | tr ' [:upper:]' ' [:lower:]' )
129129 ACCOUNT_PASSWORD=$( echo " $I_ACCOUNT " | sed ' s/^[^=]*=//g' )
130130
131- ACCOUNT_UID=$( env | grep ' ^UID_' " $ACCOUNT_NAME " | sed ' s/^[^=]*=//g' )
131+ ACCOUNT_UID=$( env | grep ' ^UID_' " $ACCOUNT_NAME " ' = ' | sed ' s/^[^=]*=//g' )
132132
133133 if [ " $ACCOUNT_UID " -gt 0 ] 2> /dev/null
134134 then
@@ -161,7 +161,7 @@ if [ ! -f "$INITALIZED" ]; then
161161 ACCOUNT_NAME=$( echo " $I_ACCOUNT " | cut -d' =' -f1 | sed ' s/ACCOUNT_//g' | tr ' [:upper:]' ' [:lower:]' )
162162
163163 # add user to groups...
164- ACCOUNT_GROUPS=$( env | grep ' ^GROUPS_' " $ACCOUNT_NAME " | sed ' s/^[^=]*=//g' )
164+ ACCOUNT_GROUPS=$( env | grep ' ^GROUPS_' " $ACCOUNT_NAME " ' = ' | sed ' s/^[^=]*=//g' )
165165 for GRP in $( echo " $ACCOUNT_GROUPS " | tr ' ,' ' \n' | grep .) ; do
166166 echo " >> ACCOUNT: adding account: $ACCOUNT_NAME to group: $GRP "
167167 addgroup " $ACCOUNT_NAME " " $GRP "
You can’t perform that action at this time.
0 commit comments