Hello community, here is the log from the commit of package nagios for openSUSE:Factory checked in at 2012-11-30 12:25:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nagios (Old) and /work/SRC/openSUSE:Factory/.nagios.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nagios", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/nagios/nagios.changes 2012-10-19 08:48:09.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.nagios.new/nagios.changes 2012-11-30 12:27:50.000000000 +0100 @@ -1,0 +2,12 @@ +Mon Nov 26 11:35:24 UTC 2012 - [email protected] + +- Use usermod instead of groupmod when suse_version > 1220 due to + pwdutils/shadow switch. + +------------------------------------------------------------------- +Tue Nov 20 07:53:48 UTC 2012 - [email protected] + +- Fix useradd invocation: -o is useless without -u and newer + versions of pwdutils/shadowutils fail on this now. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nagios.spec ++++++ --- /var/tmp/diff_new_pack.DHq2BW/_old 2012-11-30 12:27:51.000000000 +0100 +++ /var/tmp/diff_new_pack.DHq2BW/_new 2012-11-30 12:27:51.000000000 +0100 @@ -331,7 +331,7 @@ then : OK user %{nagios_user} already present else - useradd -r -o -g %{nagios_group} -s /bin/false -c "User for Nagios" -d %{nagios_localstatedir} %{nagios_user} 2> /dev/null || : + useradd -r -g %{nagios_group} -s /bin/false -c "User for Nagios" -d %{nagios_localstatedir} %{nagios_user} 2> /dev/null || : %{nnmmsg} "Added user %{nagios_user} for package %{name}" fi # update? @@ -341,7 +341,11 @@ : # %%{nagios_user} is already in %%nagios_command_group group else # Add %%{nagios_user} to %%nagios_command_group. + %if 0%{?suse_version} > 1220 + usermod -a -G %{nagios_command_group} %{nagios_user} + %else groupmod -A %{nagios_user} %{nagios_command_group} 2>/dev/null + %endif %{nnmmsg} "Added %{nagios_user} to %{nagios_command_group}" fi fi @@ -438,7 +442,11 @@ : # $wwwusr (default: %%nagios_command_user) is already in Nagios cmd group else # modify apache user, adding it to nagios_command_group + %if 0%{?suse_version} > 1220 + usermod -a -G %{nagios_command_group} $wwwusr + %else groupmod -A $wwwusr %{nagios_command_group} 2>/dev/null + %endif %nnmmsg "User $wwwusr added to group %{nagios_command_group} so sending commands to Nagios from the CGI is possible." fi # Update ? -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
