Sophie

Sophie

distrib > Mandriva > 7.2 > i586 > by-pkgid > 99ad7158c6c928dad36716b9490ca776 > scriptlet

apache-mod_perl-1.3.22_1.26-2.1mdk.i586.rpm

POSTIN

/bin/sh

#JMD: fix httpd-perl.conf since the package changed radically. We now use 
#the same modules for apache and apache-mod_perl
if [ $1 -gt 1 ]; then
    perl -pi -e "s|perl-modules|modules|g;" /etc/httpd/conf/httpd-perl.conf
fi

#JMD: do *not* use _post_service here, it is used in apache-conf, since we
#can have both apache and apache-mod_perl
if [ -e /usr/sbin/AESctl ]; then /usr/sbin/AESctl update;fi

POSTUN

/bin/sh
#JMD: do *not* use _post_service here, otherwise it will uninstall
#apache as well!!
if [ $1 = "0" ]; then
	/usr/bin/killall httpd-perl
	if [ -e /usr/sbin/AESctl ]; then /usr/sbin/AESctl update;fi
fi