diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-06-12 15:43:24 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-06-12 15:43:24 +0200 |
commit | e6d2275506e26d09ed712d78c37314d4a27676fa (patch) | |
tree | 9771b84867585bbebc9eb4e5657d639dbebc58ab /centos/rspamd.spec | |
parent | 7648f9524fec38c2386e501dd815feb839140d5e (diff) | |
download | rspamd-e6d2275506e26d09ed712d78c37314d4a27676fa.tar.gz rspamd-e6d2275506e26d09ed712d78c37314d4a27676fa.zip |
[Minor] RPM: do chown in %post
Diffstat (limited to 'centos/rspamd.spec')
-rw-r--r-- | centos/rspamd.spec | 3 |
1 files changed, 2 insertions, 1 deletions
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 |