aboutsummaryrefslogtreecommitdiffstats
path: root/fixpamd
blob: 8f77f7a5387b7c014b9a34612cdc406be5722a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if test -z "$DONT_FIX_PAMD_CONFIGS"; then
    configs=`find $RPM_BUILD_ROOT/etc/pam.d/ -type f 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