From: Andrew Lewis Date: Mon, 12 Jun 2017 13:43:24 +0000 (+0200) Subject: [Minor] RPM: do chown in %post X-Git-Tag: 1.6.0~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e6d2275506e26d09ed712d78c37314d4a27676fa;p=rspamd.git [Minor] RPM: do chown in %post --- diff --git a/centos/rspamd.spec b/centos/rspamd.spec index 125682e91..9f2ff5f18 100644 --- a/centos/rspamd.spec +++ b/centos/rspamd.spec @@ -115,7 +115,6 @@ lua. %else %{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %{__install} -d -p -m 0755 %{buildroot}%{rspamd_logdir} -%{__chown} %{rspamd_user}:%{rspamd_group} %{buildroot}%{rspamd_logdir} %endif %{__install} -d -p -m 0755 %{buildroot}%{rspamd_home} @@ -146,6 +145,8 @@ systemctl --no-reload preset %{name}.service >/dev/null 2>&1 || : %endif %if 0%{?el6} /sbin/chkconfig --add %{name} +%else +%{__chown} %{rspamd_user}:%{rspamd_group} %{buildroot}%{rspamd_logdir} %endif %preun