aboutsummaryrefslogtreecommitdiffstats
path: root/fix_pamd
diff options
context:
space:
mode:
Diffstat (limited to 'fix_pamd')
-rwxr-xr-xfix_pamd11
1 files changed, 11 insertions, 0 deletions
diff --git a/fix_pamd b/fix_pamd
new file mode 100755
index 0000000..d9a332d
--- /dev/null
+++ b/fix_pamd
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if test -z "$DONT_FIX_PAMD_CONFIGS"; then
+ configs=`find $RPM_BUILD_ROOT/etc/pam.d/ -type f ! -type l 2> /dev/null`
+ if [ -n "$configs" ]; then
+ echo -n "Fixing pam.d config files..."
+ perl -pi -e "s,/(lib|lib64)/security/,," $configs
+ echo "done"
+ fi
+fi
+