diff options
author | Koen Kooi <koen@openembedded.org> | 2010-02-10 20:34:28 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-02-10 20:38:11 +0100 |
commit | 7c5f81b2139e55622ca2f23ff6b63438d4825d87 (patch) | |
tree | 22089d24f98f0cdd8d47f185968f81dd0de7df19 /recipes/shadow/shadow.inc | |
parent | ed78d3e9ab3841293787922bf03d7c5eb4170a95 (diff) |
shadow: run pwconv and grpconv in postinst
* this converts oldstyle formats to the proper one
Diffstat (limited to 'recipes/shadow/shadow.inc')
-rw-r--r-- | recipes/shadow/shadow.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes/shadow/shadow.inc b/recipes/shadow/shadow.inc index 9da5845012..5e3d2f22ba 100644 --- a/recipes/shadow/shadow.inc +++ b/recipes/shadow/shadow.inc @@ -11,7 +11,7 @@ LICENSE = "BSD" SECTION = "base" DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" -INC_PR = "r9" +INC_PR = "r10" # Additional Policy files for PAM PAM_SRC_URI = " \ @@ -89,6 +89,11 @@ do_install_append() { pkg_postinst_${PN} () { update-alternatives --install ${bindir}/passwd passwd passwd.${PN} 100 update-alternatives --install ${sbindir}/chpasswd chpasswd chpasswd.${PN} 100 + if [ "x$D" != "x" ]; then + exit 1 + fi + pwconv + grpconv } pkg_prerm_${PN} () { |