POSTIN
/bin/sh
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart 1>&2;
fi
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database /usr/share/applications > /dev/null ||
true ; fi
echo "NOTE: Don't forget to set the nagios password, issue the command:"
echo "htpasswd /etc/nagios/passwd nagios"
POSTUN
/bin/sh
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart 1>&2
fi
fi
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
if [ "$1" = "0" -a -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database /usr/share/applications > /dev/null || true ; fi