mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 09:31:06 +02:00
eclass/acct-group: Sync with Gentoo
It's from Gentoo commit c8af7eb1285a2683460618b71e2e9a14ca6badcd.
This commit is contained in:
parent
cdbc12c662
commit
a2b904afdc
@ -89,7 +89,7 @@ S=${WORKDIR}
|
||||
# Performs sanity checks for correct eclass usage, and early-checks
|
||||
# whether requested GID can be enforced.
|
||||
acct-group_pkg_pretend() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
# verify ACCT_GROUP_ID
|
||||
[[ -n ${ACCT_GROUP_ID} ]] || die "Ebuild error: ACCT_GROUP_ID must be set!"
|
||||
@ -131,7 +131,7 @@ acct-group_pkg_pretend() {
|
||||
# @DESCRIPTION:
|
||||
# Installs sysusers.d file for the group.
|
||||
acct-group_src_install() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
# check for the override, use PN in case this is an overlay and
|
||||
# ACCT_GROUP_NAME is not PN and not valid in a bash variable name
|
||||
@ -156,7 +156,7 @@ acct-group_src_install() {
|
||||
# @DESCRIPTION:
|
||||
# Creates the group if it does not exist yet.
|
||||
acct-group_pkg_preinst() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
if [[ ${EUID} -ne 0 || -n ${EPREFIX} ]]; then
|
||||
einfo "Insufficient privileges to execute ${FUNCNAME[0]}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user