Package nagios-www-apache2: Scripts

Post install

1
2
3
gpasswd -a apache2 nagiosnew
a2chkconfig
/etc/rc.d/init.d/httpd2 condrestart
Post uninstall

1
2
3
[ "$1" = "1" ] || gpasswd -d apache2 nagiosnew
[ "$1" = "1" ] || a2chkconfig
[ "$1" = "1" ] || /etc/rc.d/init.d/httpd2 condrestart