Fix guest-account script breaking if guest is in more than one group

This commit is contained in:
jalr 2018-10-23 00:00:54 +02:00
parent d76f031498
commit f572fd62f0

View file

@ -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 ()