|
From: <di...@us...> - 2007-05-27 14:48:04
|
Revision: 510
http://safekeep.svn.sourceforge.net/safekeep/?rev=510&view=rev
Author: dimi
Date: 2007-05-27 07:48:02 -0700 (Sun, 27 May 2007)
Log Message:
-----------
Explicitely add the group, as per the Fedora policy:
http://fedoraproject.org/wiki/PackagingDrafts/UsersAndGroups
The rationale is:
We want to invoke groupadd explicitly instead of relying on
useradd to create the group for us. This is because useradd
alone would fail if the group it tries to create already
existed.
Modified Paths:
--------------
safekeep/trunk/safekeep.spec.in
Modified: safekeep/trunk/safekeep.spec.in
===================================================================
--- safekeep/trunk/safekeep.spec.in 2007-05-27 14:45:20 UTC (rev 509)
+++ safekeep/trunk/safekeep.spec.in 2007-05-27 14:48:02 UTC (rev 510)
@@ -53,6 +53,7 @@
Summary: The SafeKeep backup system (server component)
Group: Applications/System
Requires(pre): %{_sbindir}/useradd
+Requires(pre): %{_sbindir}/groupadd
Requires(pre): %{_bindir}/chsh
Requires: openssh, openssh-clients
Requires: safekeep-common = %{PACKAGE_VERSION}
@@ -89,6 +90,7 @@
rm -rf "%{buildroot}"
%pre server
+%{_sbindir}/groupadd -f -r %{name}
%{_sbindir}/useradd -r -d %{homedir} -s /bin/bash -u 186 %{name} 2> /dev/null || :
%{_bindir}/chsh -s /bin/bash %{name} > /dev/null || :
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|