diff --git a/templates/shadow/INSTALL b/templates/shadow/INSTALL index 8f9bf110fd2..29213df8cc3 100644 --- a/templates/shadow/INSTALL +++ b/templates/shadow/INSTALL @@ -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