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
1 changed files with 7 additions and 0 deletions

View File

@ -83,6 +83,13 @@ _EOF
_add_trigger system-accounts
echo "export system_accounts=\"${system_accounts}\"" >> $tmpf
for f in ${system_accounts}; do
local _uname="${acct%:*}"
local _uid="${acct#*:}"
if [ "${_uid}" = "${_uname}" ]; then
continue
fi
eval homedir="\$${f}_homedir"
eval shell="\$${f}_shell"
eval descr="\$${f}_descr"