[lightdm] comply with guidelines concerning user and group handling
brummbq
brummbq at fedoraproject.org
Sun Jul 15 16:22:26 UTC 2012
commit 3659fea92f0217dc5ce7d8df7279915ae15a136d
Author: Gregor Tätzner <gregor at freenet.de>
Date: Sun Jul 15 18:21:40 2012 +0200
comply with guidelines concerning user and group handling
lightdm.spec | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lightdm.spec b/lightdm.spec
index 72f79a2..2fb328a 100644
--- a/lightdm.spec
+++ b/lightdm.spec
@@ -1,7 +1,7 @@
Name: lightdm
Summary: Lightweight Display Manager
Version: 1.3.2
-Release: 1%{?dist}
+Release: 2%{?dist}
# library/bindings are LGPLv3, the rest GPLv3+
License: LGPLv3+ and GPLv3+
@@ -149,8 +149,9 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
%pre
+getent group lightdm >/dev/null || groupadd -r lightdm
getent passwd lightdm >/dev/null || \
- /usr/sbin/useradd -M -u 43 -d /var/log/lightdm -s /sbin/nologin -r lightdm > /dev/null 2>&1
+ /usr/sbin/useradd -g lightdm -M -d /var/log/lightdm -s /sbin/nologin -r lightdm > /dev/null 2>&1
## ignore errors, as we can't disambiguate between lightdm already existed
## and couldn't create account with the current adduser.
exit 0
@@ -209,6 +210,9 @@ exit 0
%changelog
+* Sun Jul 15 2012 Gregor Tätzner <brummbq at fedoraproject.org> - 1.3.2-2
+- comply with guidelines concerning user and group handling
+
* Fri Jul 13 2012 Rex Dieter <rdieter at fedoraproject.org> 1.3.2-1
- lightdm-1.3.2
More information about the scm-commits
mailing list