shadow: enable group shadowed passwords at install and remove chroot calls.

--HG--
extra : convert_revision : 85eebfb288da88754b9d03e5a2a30cef3e29e12e
This commit is contained in:
Juan RP 2009-04-08 03:24:02 +02:00
parent 22f6b0eac7
commit 201be83c73

View File

@ -44,23 +44,18 @@ _EOF
echo "Created default /etc/group file."
}
case "$2" in
case "${ACTION}" in
pre)
;;
post)
echo "Running $3-$4 post installation hooks..."
if [ "$1" = "NOTSET" ]; then
run_cmd="pwconv"
else
run_cmd="chroot $1 pwconv"
fi
echo "Running ${PKGNAME}-${VERSION} post installation hooks..."
[ ! -f ./etc/passwd ] && create_passwd
[ ! -f ./etc/group ] && create_group
if [ ! -f ./etc/shadow ]; then
echo "Enabling shadow passwords..."
${run_cmd}
echo "Enabling shadowed (group) passwords..."
pwconv && grpconv
fi
;;
esac