Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > contrib > by-pkgid > d1e8351bdda97a942ec62a457be8bccf > scriptlet

apache1-mod_ssl-1.3.33_2.8.24-1mdk.x86_64.rpm

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