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." echo "Created default /etc/group file."
} }
case "$2" in case "${ACTION}" in
pre) pre)
;; ;;
post) post)
echo "Running $3-$4 post installation hooks..." echo "Running ${PKGNAME}-${VERSION} post installation hooks..."
if [ "$1" = "NOTSET" ]; then
run_cmd="pwconv"
else
run_cmd="chroot $1 pwconv"
fi
[ ! -f ./etc/passwd ] && create_passwd [ ! -f ./etc/passwd ] && create_passwd
[ ! -f ./etc/group ] && create_group [ ! -f ./etc/group ] && create_group
if [ ! -f ./etc/shadow ]; then if [ ! -f ./etc/shadow ]; then
echo "Enabling shadow passwords..." echo "Enabling shadowed (group) passwords..."
${run_cmd} pwconv && grpconv
fi fi
;; ;;
esac esac