%{__sed} -i -e "s/^default_mail_env/mail_location/" /etc/dovecot/dovecot.conf
%triggerpostun -- dovecot < 1:2.0.0
-echo "Read http://wiki2.dovecot.org/Upgrading/2.0"
+i=0
for a in /etc/dovecot/dovecot-db-example.conf \
/etc/dovecot/dovecot-dict-sql-example.conf \
/etc/dovecot/dovecot-ldap-example.conf \
/etc/dovecot/dovecot-sql-example.conf \
/etc/dovecot/dovecot.conf; do
if [ -f "$a" ]; then
+ [ "$i" -eq 0 ] && echo "Read http://wiki2.dovecot.org/Upgrading/2.0"
+ i=1
echo "Trying to migrate $a config file to dovecot 2."
cp -a "$a" "$a-1.2.org"
- %{_sbindir}/doveconf -n -c "$a-1.2.org" > "$a"
+ %{_bindir}/doveconf -n -c "$a-1.2.org" > "$a"
fi
done