From 800dfd971703e1beeaafd91870c4922bff3782c0 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Dec 02 2011 14:54:54 +0000 Subject: call systemd reload in postun --- diff --git a/dovecot.spec b/dovecot.spec index e8ad3ce..7f7fa36 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -3,7 +3,7 @@ Name: dovecot Epoch: 1 Version: 2.1 %global prever .rc1 -Release: 0.1%{prever}%{?dist} +Release: 0.2%{prever}%{?dist} #dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2 License: MIT and LGPLv2 Group: System Environment/Daemons @@ -219,7 +219,7 @@ rm -rf $RPM_BUILD_ROOT %pre -#dovecot uig and gid are reserved, see /usr/share/doc/setup-*/uidgid +#dovecot uid and gid are reserved, see /usr/share/doc/setup-*/uidgid getent group dovecot >/dev/null || groupadd -r --gid 97 dovecot getent passwd dovecot >/dev/null || \ useradd -r --uid 97 -g dovecot -d /usr/libexec/dovecot -s /sbin/nologin -c "Dovecot IMAP server" dovecot @@ -269,6 +269,10 @@ if [ $1 = 0 ]; then fi %postun +%if %{?fedora}0 > 140 || %{?rhel}0 > 60 +/bin/systemctl daemon-reload >/dev/null 2>&1 || : +%endif + if [ "$1" -ge "1" ]; then %if %{?fedora}0 > 140 || %{?rhel}0 > 60 /bin/systemctl try-restart dovecot.service >/dev/null 2>&1 || : @@ -403,6 +407,9 @@ make check %{_libdir}/%{name}/dict/libdriver_pgsql.so %changelog +* Fri Dec 02 2011 Michal Hlavinka - 1:2.1-0.2.rc1 +- call systemd reload in postun + * Wed Nov 30 2011 Michal Hlavinka - 1:2.1-0.1.rc1 - updated to 2.1.rc1 - major changes since 2.0.x: