[util-*] use given primary group of user in chown cmd

- don't assume that the primary group of a user is named the same as the user itself
- fixes #248
This commit is contained in:
Philip 2016-08-30 19:48:02 +02:00
parent 5277fe3037
commit 123ad11541

View file

@ -749,7 +749,7 @@ load_profile(){
iso_dir="${cache_dir_iso}/${edition}/${dist_release}/${profile}"
prepare_dir "${iso_dir}"
chown "${OWNER}:${OWNER}" "${iso_dir}"
chown "${OWNER}:$(id --group ${OWNER})" "${iso_dir}"
mktorrent_args=(-v -p -l ${piece_size} -a ${tracker_url} -w $(gen_webseed))
}