summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rw-r--r--packaging/RedHat/samba.spec.tmpl17
1 files 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