Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core > by-pkgid > 4442042dcf5eec70d8dcea61bf153c4f > scriptlet

apache2-mod_perl-2.0.3-alt5.i586.rpm

PREUN

/bin/sh
if [ "$1" = "0" ] ; then # last uninstall
    [ -e /etc/httpd2/conf/mods-enabled/perl.load ] && /usr/sbin/a2dismod perl 2>&1 >/dev/null ||:
fi

POSTIN

/bin/sh
# Reconfigure Apache2:
/usr/sbin/a2chkconfig ||:

if [ -e /etc/httpd2/conf/mods-enabled/perl.load ]; then
    CONF_OK=0
    /usr/sbin/apachectl2 configtest && CONF_OK=1 ||:
    if [ "$CONF_OK" = "1" ]; then
	service httpd2 condrestart ||:
    else
        echo "Some errors detected in Apache2 configuration!"
	echo "To use mod_perl check configuration and start httpd2 service."
    echo
    fi
else
    echo "Apache2 mod_perl module had been installed, but does't enabled."
    echo "Check /etc/httpd2/conf/mods-start.d directory for files with 'perl=no' lines."
    echo
fi

POSTUN

/bin/sh
# Reconfigure Apache2:
/usr/sbin/a2chkconfig ||:
if [ "$1" = "0" ] ; then # last uninstall
    CONF_OK=0
    /usr/sbin/apachectl2 configtest && CONF_OK=1 ||:
    if [ "$CONF_OK" = "1" ]; then
	service httpd2 condrestart ||:
    else
        echo "Some errors detected in Apache2 configuration!"
	echo "To complete mod_perl uninstalling check configuration and restart httpd2 service."
	echo
    fi
fi