Fix guest-account script breaking if guest is in more than one group
This commit is contained in:
parent
d76f031498
commit
f572fd62f0
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ fi
|
|||
|
||||
# read list of supplementary groups of the guest account from file
|
||||
if [ -f /etc/guest-account/groups ]; then
|
||||
GROUPS="$(cat /etc/guest-account/groups)"
|
||||
GROUPS="$(awk '{ if (NR==1) printf "%s", $0; else printf ",%s", $0; } END { print "" }' /etc/guest-account/groups)"
|
||||
fi
|
||||
|
||||
is_system_user ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue