fix bug about print error message in install exim-clamav and exim-greylist

This commit is contained in:
TomNewChao 2023-08-29 11:24:06 +08:00
parent 26b3f8bc5f
commit d7e62a50bd

View File

@ -4,7 +4,7 @@
Summary: The exim mail transfer agent
Name: exim
Version: 4.96
Release: 2
Release: 3
License: GPLv2+
Url: https://www.exim.org/
@ -365,7 +365,7 @@ fi
%post greylist
if [ ! -r %{_var}/spool/exim/db/greylist.db ]; then
sqlite3 %{_var}/spool/exim/db/greylist.db < %{_sysconfdir}/exim/mk-greylist-db.sql
chown exim.exim %{_var}/spool/exim/db/greylist.db
chown exim:exim %{_var}/spool/exim/db/greylist.db
chmod 0660 %{_var}/spool/exim/db/greylist.db
fi
@ -446,7 +446,7 @@ fi
/bin/mkdir -pm 0750 %{_var}/run/clamd.exim
/bin/chown exim:exim %{_var}/run/clamd.exim
/bin/touch %{_var}/log/clamd.exim
/bin/chown exim.exim %{_var}/log/clamd.exim
/bin/chown exim:exim %{_var}/log/clamd.exim
/sbin/restorecon %{_var}/log/clamd.exim
if [ $1 -eq 1 ] ; then
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
@ -482,6 +482,9 @@ fi
%{_sysconfdir}/cron.daily/greylist-tidy.sh
%changelog
* Tue Aug 29 2023 zhuchao <tom_toworld@163.com> - 4.96-3
- DESC:fix bug about print error message in install exim-clamav and exim-greylist
* Thur Feb 16 2023 zhuchao <tom_toworld@163.com> - 4.96-2
- DESC:add build requirement init