summaryrefslogtreecommitdiffstats
path: root/pykolab.spec.in
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-03 15:03:12 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-03 15:03:12 +0100
commita2905078b8e065ff61f5159fe141c180242ff302 (patch)
treee4b0684124b7de80df80774f7e2472bfc404dd98 /pykolab.spec.in
parent4892e46650a58f4fd9f206217005316537da8e03 (diff)
downloadpykolab-a2905078b8e065ff61f5159fe141c180242ff302.tar.gz
Add apache user to the kolab group
Diffstat (limited to 'pykolab.spec.in')
-rw-r--r--pykolab.spec.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab.spec.in b/pykolab.spec.in
index 1452d43..9b89889 100644
--- a/pykolab.spec.in
+++ b/pykolab.spec.in
@@ -147,6 +147,8 @@ getent passwd %{kolab_user} &>/dev/null || \
useradd -r -u %{kolab_user_id} -g %{kolab_group} -d %{_localstatedir}/lib/%{kolab_user} -s /sbin/nologin \
-c "Kolab System Account" %{kolab_user} &>/dev/null || :
+gpasswd -a apache kolab >/dev/null 2>&1 || :
+
getent group %{kolabn_group} &>/dev/null || groupadd -r %{kolabn_group} -g %{kolabn_group_id} &>/dev/null
getent passwd %{kolabn_user} &>/dev/null || \
useradd -r -u %{kolabn_user_id} -g %{kolabn_group} -d %{_localstatedir}/lib/%{kolabn_user} -s /sbin/nologin \