PRETRANS
/bin/sh
# fix for old apache configuration
if [ -f /etc/httpd/conf/webapps.d/12_nagios.conf ]; then
mv /etc/httpd/conf/webapps.d/12_nagios.conf \
/etc/httpd/conf/webapps.d/nagios.conf
perl -pi -e 's|/usr/share/nagios|/usr/share/nagios/www|' \
/etc/httpd/conf/webapps.d/nagios.conf
fi
POSTIN
/bin/sh
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart >/dev/null 2>&1 || :
fi
POSTUN
/bin/sh
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart >/dev/null 2>&1 || :
fi
fi