aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2009-05-23 12:28:56 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2009-05-23 12:28:56 +0000
commit406defb2c0424bf0e4d4da98b1ac7e5ee396111f (patch)
treedce63a282212680f79f6706755765c36e07c86b7
parent18e1d814476f1b7847d84e3550cb2dda4d29796a (diff)
downloadspec-helper-406defb2c0424bf0e4d4da98b1ac7e5ee396111f.tar
spec-helper-406defb2c0424bf0e4d4da98b1ac7e5ee396111f.tar.gz
spec-helper-406defb2c0424bf0e4d4da98b1ac7e5ee396111f.tar.bz2
spec-helper-406defb2c0424bf0e4d4da98b1ac7e5ee396111f.tar.xz
spec-helper-406defb2c0424bf0e4d4da98b1ac7e5ee396111f.zip
checking for DONT_FIX_PAMD_CONFIGS env var is done in rpm macro
-rwxr-xr-xfix_pamd13
1 files changed, 5 insertions, 8 deletions
diff --git a/fix_pamd b/fix_pamd
index d9a332d..895c44e 100755
--- a/fix_pamd
+++ b/fix_pamd
@@ -1,11 +1,8 @@
#!/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
+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
-