]> git.pld-linux.org Git - packages/dovecot.git/commitdiff
- fixes for trigger
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 18 Sep 2010 20:22:08 +0000 (20:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dovecot.spec -> 1.147

dovecot.spec

index bef61f4c6374dfeddccec2ca7201df196158b43b..6ab2b4aca42fcff5574bf0ff5a88cc900cc83f0e 100644 (file)
@@ -219,16 +219,18 @@ 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"
+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
 
This page took 0.076873 seconds and 4 git commands to generate.