summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2009-12-03 11:52:09 +0100
committerKarel Klic <kklic@redhat.com>2009-12-03 11:52:09 +0100
commit9d3c3a8b002451c66aa21ec155e17cf2190aeb5b (patch)
treeca7a2da5a5f2c1905642969101c1b4325fada97c
parentb3ccd7f6d9a716e30039cdac92b338d1f70d9f8c (diff)
Add abrt group only if it is missing; fixes rhbz#543250
-rw-r--r--abrt.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/abrt.spec b/abrt.spec
index 6ea4823..2503d48 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -248,7 +248,8 @@ desktop-file-install \
rm -rf $RPM_BUILD_ROOT
%pre
-/usr/sbin/groupadd -f --system abrt
+getent group abrt >/dev/null || groupadd -f --system abrt
+exit 0
%post
/sbin/chkconfig --add %{name}d