Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 52a578e8f60b63bbbdb63d1a64cc873a > scriptlet

apache-conf-2.2.9-2.2mdv2009.0.i586.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user apache-conf $1 apache /var/www /bin/sh 

# tuck away presumptive old httpd.conf file based on certain criteria
if [ -f /etc/httpd/conf/httpd.conf ]; then
    if grep -q APACHEPROXIED /etc/httpd/conf/httpd.conf; then
	TEMP_DATE=`date +%Y%m%d%H%M`
	echo "Found an old apache v1.x /etc/httpd/conf/httpd.conf configuration file."
	echo "I will rename it to /etc/httpd/conf/httpd.conf.$TEMP_DATE in order"
	echo "for this install to work."
	mv /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.$TEMP_DATE
    fi
fi

PREUN

/bin/sh
/usr/share/rpm-helper/del-service apache-conf $1 httpd

POSTIN

/bin/sh
/usr/share/rpm-helper/add-service apache-conf $1 httpd

POSTUN

/bin/sh
/usr/share/rpm-helper/del-user apache-conf $1 apache