shadow: enable group shadowed passwords at install and remove chroot calls.
--HG-- extra : convert_revision : 85eebfb288da88754b9d03e5a2a30cef3e29e12e
This commit is contained in:
parent
22f6b0eac7
commit
201be83c73
1 changed files with 4 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue