diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-04-19 06:22:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-04-19 06:22:52 +0000 |
commit | 1f41793b4404cc745ad509010add816aac6ef373 (patch) | |
tree | 0d36292a726e5e9ba40a81917bcd07eb54f2587d /sys-apps/baselayout/baselayout-2.0.0.ebuild | |
parent | Removed old versions (diff) | |
download | historical-1f41793b4404cc745ad509010add816aac6ef373.tar.gz historical-1f41793b4404cc745ad509010add816aac6ef373.tar.bz2 historical-1f41793b4404cc745ad509010add816aac6ef373.zip |
Detect and display users with non-existent shells #215698.
Package-Manager: portage-2.2_pre5
Diffstat (limited to 'sys-apps/baselayout/baselayout-2.0.0.ebuild')
-rw-r--r-- | sys-apps/baselayout/baselayout-2.0.0.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys-apps/baselayout/baselayout-2.0.0.ebuild b/sys-apps/baselayout/baselayout-2.0.0.ebuild index 92084b9338e6..bf49e9edb75e 100644 --- a/sys-apps/baselayout/baselayout-2.0.0.ebuild +++ b/sys-apps/baselayout/baselayout-2.0.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.0.0.ebuild,v 1.3 2008/04/17 17:42:18 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.0.0.ebuild,v 1.4 2008/04/19 06:22:52 vapier Exp $ inherit multilib @@ -116,4 +116,14 @@ pkg_postinst() { ewarn ${bad_users} fi fi + + # whine about users with invalid shells #215698 + if [[ -e ${ROOT}/etc/passwd ]] ; then + local bad_shells=$(awk -F: 'system("test -e " $7) { print $1 " - " $7}' /etc/passwd | sort) + if [[ -n ${bad_shells} ]] ; then + echo + ewarn "The following users have non-existent shells!" + ewarn "${bad_shells}" + fi + fi } |