hooks/xbps-metadata-scripts: add support for system_accounts=foo:uid.
This commit is contained in:
parent
ee8504eeae
commit
53655c45e8
1 changed files with 7 additions and 0 deletions
|
@ -83,6 +83,13 @@ _EOF
|
||||||
_add_trigger system-accounts
|
_add_trigger system-accounts
|
||||||
echo "export system_accounts=\"${system_accounts}\"" >> $tmpf
|
echo "export system_accounts=\"${system_accounts}\"" >> $tmpf
|
||||||
for f in ${system_accounts}; do
|
for f in ${system_accounts}; do
|
||||||
|
local _uname="${acct%:*}"
|
||||||
|
local _uid="${acct#*:}"
|
||||||
|
|
||||||
|
if [ "${_uid}" = "${_uname}" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
eval homedir="\$${f}_homedir"
|
eval homedir="\$${f}_homedir"
|
||||||
eval shell="\$${f}_shell"
|
eval shell="\$${f}_shell"
|
||||||
eval descr="\$${f}_descr"
|
eval descr="\$${f}_descr"
|
||||||
|
|
Loading…
Reference in a new issue