mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
Merge pull request #757 from marineam/user
eclass: set default portage user and group
This commit is contained in:
commit
a648c7fdbe
@ -470,8 +470,8 @@ cros-workon_pkg_setup() {
|
|||||||
if [[ ${CROS_WORKON_INCREMENTAL_BUILD} == "1" ]]; then
|
if [[ ${CROS_WORKON_INCREMENTAL_BUILD} == "1" ]]; then
|
||||||
local out=$(cros-workon_get_build_dir)
|
local out=$(cros-workon_get_build_dir)
|
||||||
addwrite "${out}"
|
addwrite "${out}"
|
||||||
mkdir -p -m 755 "${out}"
|
mkdir -p -m 755 "${out}" || die
|
||||||
chown ${PORTAGE_USERNAME}:${PORTAGE_GRPNAME} "${out}" "${out%/*}"
|
chown ${PORTAGE_USERNAME:-portage}:${PORTAGE_GRPNAME:-portage} "${out}" "${out%/*}" || die
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user