/[smecontribs]/rpms/smeserver-nagios/contribs8/smeserver-nagios-2.0.0-usermod.patch
ViewVC logotype

Annotation of /rpms/smeserver-nagios/contribs8/smeserver-nagios-2.0.0-usermod.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Sun Oct 13 23:47:50 2013 UTC (11 years ago) by unnilennium
Branch: MAIN
Changes since 1.1: +6 -3 lines
* Sun Oct 13 2013 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-3.sme
- usermod bug [SME: 5539]
- add requirements to ease isntallation : nagios-plugins nagios-plugins-setuid
-  smeserver-nagios-plugins-mysql and smeserver-nagios-backup
- inserted config db default
- added users to accounts defaults
- corrected /etc/nagios/nagios.cfg-smeserver

1 unnilennium 1.1 diff -up smeserver-nagios-2.0.0/root/etc/rc.d/init.d/nagios-sme.usermod smeserver-nagios-2.0.0/root/etc/rc.d/init.d/nagios-sme
2     --- smeserver-nagios-2.0.0/root/etc/rc.d/init.d/nagios-sme.usermod 2008-11-17 06:49:09.000000000 -0500
3     +++ smeserver-nagios-2.0.0/root/etc/rc.d/init.d/nagios-sme 2013-10-13 18:49:52.000000000 -0400
4 unnilennium 1.2 @@ -1,6 +1,14 @@
5 unnilennium 1.1 #!/bin/sh
6     /usr/sbin/usermod -G www nagios
7     -/usr/sbin/usermod -G nagios,nagiocmd www
8     +if [[ ! $listgroup == *nagios* ]]
9     +then
10 unnilennium 1.2 +listgroup=$listgroup",nagios";
11     +fi
12     +if [[ ! $listgroup == *nagiocm* ]]
13     +then
14     +listgroup=$listgroup",nagiocmd";
15 unnilennium 1.1 +fi
16     +/usr/sbin/usermod -G $listgroup www
17     /bin/mkdir -p /var/nagios/rw
18     /bin/chown -R nagios.www /var/nagios/rw
19     /bin/chmod -R u+rwx,g+rws,o-rwx /var/nagios/rw

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed