From 5121bd6edeaecc6e39e17257bfa54358f5b9f468 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 15 Dec 2003 16:42:42 +0000 Subject: [PATCH] correct problem with pam config install (This used to be commit c368defc05f80c255ceb51229ea7a2ef16ee6aee) --- packaging/RedHat/samba.spec.tmpl | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/packaging/RedHat/samba.spec.tmpl b/packaging/RedHat/samba.spec.tmpl index 1ada371d0d8..7ef87da29bb 100644 --- a/packaging/RedHat/samba.spec.tmpl +++ b/packaging/RedHat/samba.spec.tmpl @@ -285,16 +285,13 @@ else rm -f /etc/samba/samba.xinetd fi -# Install the correct version of the samba pam file, depending on pam version. -# (always keep an existing PAM config file) -if [ ! -f /lib/security/pam_stack.so ]; then - if [ -f /lib/security/pam_stack.so ]; then - echo "Installing stack version of /etc/pam.d/samba..." - mv /etc/samba/samba.stack /etc/pam.d/samba - else - echo "Installing non-stack version of /etc/pam.d/samba..." - rm -f /etc/samba/samba.stack - fi +# Install the correct version of the samba pam file +if [ -f /lib/security/pam_stack.so ]; then + echo "Installing stack version of /etc/pam.d/samba..." + mv /etc/samba/samba.stack /etc/pam.d/samba +else + echo "Installing non-stack version of /etc/pam.d/samba..." + rm -f /etc/samba/samba.stack fi ## call ldconfig to create the version symlink for libsmbclient.so -- 2.34.1