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/nss/apache-mod_nss/key3.db ]; then
/usr/sbin/gencert /etc/pki/nss/apache-mod_nss > /etc/pki/nss/apache-mod_nss/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/nss/apache-mod_nss -user root -name "*.db" -exec /bin/chgrp apache {} \;
/bin/find /etc/pki/nss/apache-mod_nss -user root -name "*.db" -exec /bin/chmod g+r {} \;
fi
/usr/share/rpm-helper/add-service apache-mod_nss $1 httpd