]> git.pld-linux.org Git - packages/dovecot.git/commitdiff
- prefix stderr with hash in trigger (pawelz)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 26 Sep 2010 17:58:37 +0000 (17:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dovecot.spec -> 1.149

dovecot.spec

index dbac2be1e34ff60a970a066e0d8be40dc685aa94..2e206a7f0382da0ba0490ae230be6e4e6fc97c70 100644 (file)
@@ -229,9 +229,14 @@ for a in /etc/dovecot/dovecot-db-example.conf \
                [ "$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" && %{_bindir}/doveconf -n -c "$a-1.2.org" > "$a" 2>&1 || :
+               cp -a "$a" "$a-1.2.org"
+               # convert config and prefix stderr lines with #
+               ( %{_bindir}/doveconf -n -c "$a-1.2.org" 3>&2 2>&1 1>&3 | sed 's/^/#/' ) 2>&1 > "$a" || :
        fi
 done
+if [ "$i" -eq 1 ]; then
+       echo "Please verify contents of %{_sysconfdir}/%{name}/* files."
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.97147 seconds and 4 git commands to generate.