summarylogtreecommitdiffstats
path: root/pam_abl.install
blob: 84421630137a52e8ff2018284b9d191ab62a8abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_upgrade() {
    if (( $(vercmp $2 1.0) < 0 )); then
        if test -f etc/security/pam_abl.conf ; then
            if ! grep -q db_module= etc/security/pam_abl.conf ; then
                echo db_module not set in /etc/security/pam_abl.conf
                echo Setting db_module as BDB module. Consider switching to Kyoto Cabinet.
                echo 'db_module=/usr/lib/security/pam_abl_bdb.so' >> etc/security/pam_abl.conf
            fi
            echo host_db and user_db options are removed, commenting in /etc/security/pam_abl.conf
            sed -i -e 's/^\(host_db=\)/#\1/' -e 's/^\(user_db=\)/#\1/' etc/security/pam_abl.conf
        fi
    fi
}

post_install() {
    echo This package requires non-trivial configuration. See:
    echo https://wiki.archlinux.org/index.php/Pam_abl
}