From 53655c45e8bc1d9336eac61b25227cc9560c9d9a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 30 Jul 2014 11:09:51 +0200 Subject: [PATCH] hooks/xbps-metadata-scripts: add support for system_accounts=foo:uid. --- .../hooks/post-install/04-create-xbps-metadata-scripts.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh index 956ec5556c0..433240f3f8d 100644 --- a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh +++ b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh @@ -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"