fixed: systemd commands in %post (thanks Bill Nottingham)

This commit is contained in:
Michal Hlavinka 2011-05-09 13:39:37 +02:00
parent 45c13ab9af
commit a1eec5a1e5

View File

@ -1,6 +1,6 @@
Name: cyrus-imapd Name: cyrus-imapd
Version: 2.4.8 Version: 2.4.8
Release: 1%{?dist} Release: 2%{?dist}
%define ssl_pem_file %{_sysconfdir}/pki/%{name}/%{name}.pem %define ssl_pem_file %{_sysconfdir}/pki/%{name}/%{name}.pem
@ -301,10 +301,7 @@ rm -rf %{buildroot}
-G saslauth -s /sbin/nologin -u %{uid} -r %{_cyrususer} 2> /dev/null || : -G saslauth -s /sbin/nologin -u %{uid} -r %{_cyrususer} 2> /dev/null || :
%post %post
/sbin/service cyrus-imapd condrestart >/dev/null 2>&1 ||: /bin/systemctl daemon-reload > /dev/null 2>&1 :
if [ $1 -eq 1 ]; then
/bin/systemctl enable cyrus-imapd.service >/dev/null 2>&1 || :
fi
# Force synchronous updates, usually only on ext2 filesystems # Force synchronous updates, usually only on ext2 filesystems
for i in %{_var}/lib/imap/{user,quota} %{_var}/spool/imap for i in %{_var}/lib/imap/{user,quota} %{_var}/spool/imap
@ -349,8 +346,8 @@ if [ $1 -ge 1 ] ; then
/bin/systemctl try-restart cyrus-imapd.service >/dev/null 2>&1 || : /bin/systemctl try-restart cyrus-imapd.service >/dev/null 2>&1 || :
fi fi
%triggerun -- smartmontools < 2.4.7-2 %triggerun -- cyrus-imapd < 2.4.7-2
/sbin/chkconfig smartd && /bin/systemctl enable smartd.service >/dev/null 2>&1 || : /sbin/chkconfig --level 3 cyrus-imapd && /bin/systemctl enable cyrus-imapd.service >/dev/null 2>&1 || :
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -489,6 +486,9 @@ fi
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Mon May 09 2011 Michal Hlavinka <mhlavink@redhat.com> - 2.4.8-2
- fixed: systemd commands in %%post (thanks Bill Nottingham)
* Thu Apr 14 2011 Michal Hlavinka <mhlavink@redhat.com> - 2.4.8-1 * Thu Apr 14 2011 Michal Hlavinka <mhlavink@redhat.com> - 2.4.8-1
- cyrus-imapd updated to 2.4.8 - cyrus-imapd updated to 2.4.8
- fixed: cannot set unlimited quota through proxy - fixed: cannot set unlimited quota through proxy