aboutsummaryrefslogtreecommitdiffstats
path: root/fix_pamd
blob: 895c44e3329996f35e532b29b5df12e401c4d330 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

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