[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:
parent
5277fe3037
commit
123ad11541
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue