rpms/nut/F-11 nut.spec,1.71,1.72
Michal Hlavinka
mhlavink at fedoraproject.org
Fri Apr 17 19:47:31 UTC 2009
Author: mhlavink
Update of /cvs/extras/rpms/nut/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19421
Modified Files:
nut.spec
Log Message:
change group even for existing nut user (#495999)
Index: nut.spec
===================================================================
RCS file: /cvs/extras/rpms/nut/F-11/nut.spec,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- nut.spec 14 Apr 2009 08:59:12 -0000 1.71
+++ nut.spec 17 Apr 2009 19:47:01 -0000 1.72
@@ -9,7 +9,7 @@
Summary: Network UPS Tools
Name: nut
Version: 2.4.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Group: Applications/System
License: GPLv2+
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -183,16 +183,19 @@
done
%pre
-/usr/sbin/useradd -c "Network UPS Tools" -u %{nut_uid} -G dialout \
+/usr/sbin/useradd -c "Network UPS Tools" -u %{nut_uid} \
-s /bin/false -r -d %{_localstatedir}/lib/ups %{name} 2> /dev/null || :
+/usr/sbin/usermod -G dialout %{name}
%pre client
-/usr/sbin/useradd -c "Network UPS Tools" -u %{nut_uid} -G dialout \
+/usr/sbin/useradd -c "Network UPS Tools" -u %{nut_uid} \
-s /bin/false -r -d %{_localstatedir}/lib/ups %{name} 2> /dev/null || :
+/usr/sbin/usermod -G dialout %{name}
%pre cgi
-/usr/sbin/useradd -c "Network UPS Tools" -u %{nut_uid} -G dialout \
+/usr/sbin/useradd -c "Network UPS Tools" -u %{nut_uid} \
-s /bin/false -r -d %{_localstatedir}/lib/ups %{name} 2> /dev/null || :
+/usr/sbin/usermod -G dialout %{name}
%post client
/sbin/chkconfig --add ups
@@ -337,6 +340,9 @@
%{_libdir}/pkgconfig/libupsclient.pc
%changelog
+* Fri Apr 17 2009 Michal Hlavinka <mhlavink at redhat.com> - 2.4.1-4
+- change group even for existing nut user (#495999)
+
* Tue Apr 14 2009 Michal Hlavinka <mhlavink at redhat.com> - 2.4.1-3
- udev changed group from uucp to dialout, follow the change (#494020)
More information about the fedora-extras-commits
mailing list