Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > ba0f27bf0586e6be1e89ca260eeceac4 > scriptlet

apache-mod_nss-1.0.14-1.2.mga5.x86_64.rpm

PREUN

/bin/sh
/usr/share/rpm-helper/del-service apache-mod_nss $1 httpd

POSTIN

/bin/sh
# Create an NSS database.
# This will create the 3 files that make up your database: cert8.db, key3.db and secmod.db. and the install.log
umask 077

if [ "$1" -eq 1 ] ; then
    if [ ! -e /etc/pki/nssdb/key3.db ]; then
        /usr/sbin/gencert /etc/pki/nssdb > /etc/pki/nssdb/install.log 2>&1
        echo ""
        echo "apache-mod_nss certificate database generated."
        echo ""
    fi

    # Make sure that the database ownership is setup properly.
    /bin/find /etc/pki/nssdb -user root -name "*.db" -exec /bin/chgrp apache {} \;
    /bin/find /etc/pki/nssdb -user root -name "*.db" -exec /bin/chmod g+r {} \;
fi  
/usr/share/rpm-helper/add-service apache-mod_nss $1 httpd