Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > media > contrib-release > by-pkgid > 377e7770de66379516a89d9477e49a2a > scriptlet

nagios-www-2.5-5mdv2007.0.i586.rpm

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