hooks/xbps-metadata-scripts: add support for system_accounts=foo:uid.

This commit is contained in:
Juan RP 2014-07-30 11:09:51 +02:00
parent ee8504eeae
commit 53655c45e8

View file

@ -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"