summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-06-30 08:56:42 +0200
committerAntonin Kral <a.kral@bobek.cz>2010-06-30 08:56:42 +0200
commit5c6a2219e6715bd7649c3fd28f58e6fb63d60a25 (patch)
tree1eda5f5ca9bd35190fe499a51119e855774b16c0 /rpm
parentdf7046adebaeb16716b5a2cebc6f34694f530caf (diff)
downloadmongodb-5c6a2219e6715bd7649c3fd28f58e6fb63d60a25.tar.gz
Imported Upstream version 1.4.4
Diffstat (limited to 'rpm')
-rw-r--r--rpm/mongo.spec11
1 files changed, 8 insertions, 3 deletions
diff --git a/rpm/mongo.spec b/rpm/mongo.spec
index 8ad6a0f..79b5b60 100644
--- a/rpm/mongo.spec
+++ b/rpm/mongo.spec
@@ -1,5 +1,5 @@
Name: mongo
-Version: 1.4.3
+Version: 1.4.4
Release: mongodb_1%{?dist}
Summary: mongo client shell and tools
License: AGPL 3.0
@@ -68,8 +68,13 @@ scons -c
rm -rf $RPM_BUILD_ROOT
%pre server
-/usr/sbin/useradd -M -r -U -d /var/lib/mongo -s /bin/false \
- -c mongod mongod > /dev/null 2>&1
+if ! /usr/bin/id -g mongod &>/dev/null; then
+ /usr/sbin/groupadd -r mongod
+fi
+if ! /usr/bin/id mongod &>/dev/null; then
+ /usr/sbin/useradd -M -r -g mongod -d /var/lib/mongo -s /bin/false \
+ -c mongod mongod > /dev/null 2>&1
+fi
%post server
if test $1 = 1