POSTIN
/bin/sh
if [ $1 = "1" ]; then
#Create a self-signed server key and certificate
#this will overwrite the dummy certificate
echo "Generating self-signed certificate"
pushd /etc/ssl/apache1-mod_ssl/ >/dev/null
yes ""|/usr/lib64/ssl/apache1-mod_ssl/gentestcrt.sh >/dev/null 2>/dev/null
popd > /dev/null
if [ -e /usr/sbin/ADVXctl ]; then /usr/sbin/ADVXctl update;fi
fi
if [ -f /var/lock/subsys/apache1 ]; then
/etc/rc.d/init.d/apache1 restart 1>&2;
fi
POSTUN
/bin/sh
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/apache1 ]; then
/etc/rc.d/init.d/apache1 restart 1>&2
fi
fi