]> git.pld-linux.org Git - packages/dovecot.git/commitdiff
- untested config 1.2->2.0 trigger
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 18 Sep 2010 20:14:07 +0000 (20:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dovecot.spec -> 1.146

dovecot.spec

index de296d88c46aa28d6759236c8d8e2f787b791642..bef61f4c6374dfeddccec2ca7201df196158b43b 100644 (file)
@@ -218,6 +218,20 @@ fi
 echo "Configuration change default_mail_env -> mail_location"
 %{__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"
+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
+               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"
+       fi
+done
+
 %files
 %defattr(644,root,root,755)
 # COPYING contains some notes, not actual LGPL text
This page took 0.105802 seconds and 4 git commands to generate.