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