correct problem with pam config install
authorGerald Carter <jerry@samba.org>
Mon, 15 Dec 2003 16:42:42 +0000 (16:42 +0000)
committerGerald Carter <jerry@samba.org>
Mon, 15 Dec 2003 16:42:42 +0000 (16:42 +0000)
(This used to be commit c368defc05f80c255ceb51229ea7a2ef16ee6aee)

packaging/RedHat/samba.spec.tmpl

index 1ada371d0d87ce851922403a24ef79a7d7599084..7ef87da29bb5ff758bee828b8a7171f7de7bc0b9 100644 (file)
@@ -285,16 +285,13 @@ else
        rm -f /etc/samba/samba.xinetd
 fi
 
        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
 fi
 
 ## call ldconfig to create the version symlink for libsmbclient.so