From 96085b91831a465321a9bfa36db7467e0f7f69f8 Mon Sep 17 00:00:00 2001 From: Roy Kaldung Date: Thu, 24 Sep 2015 23:18:45 +0200 Subject: [PATCH] create zammad user and added requirements --- extras/zammad.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extras/zammad.spec b/extras/zammad.spec index 8ad64dc0b..9d4b9ebeb 100644 --- a/extras/zammad.spec +++ b/extras/zammad.spec @@ -16,6 +16,8 @@ Version: 0.0 License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Group: Applications/Mail Provides: zammad +Requires(pre): /usr/sbin/useradd, /usr/bin/getent +Requires(postun): /usr/sbin/userdel Requires: cronie httpd Autoreqprov: no Release: 01 @@ -27,6 +29,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %prep +/usr/bin/getent passwd zammad || /usr/sbin/useradd -d /opt/zammad -s /bin/bash zammad #%setup %build