]> git.pld-linux.org Git - packages/dovecot.git/commitdiff
- store errors in log file
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 30 Sep 2010 20:27:54 +0000 (20:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dovecot.spec -> 1.151

dovecot.spec

index 2e1e43484eeb883f5f7a2398f04105434b7de16b..5dac1e8e57ca7d14e038dcfe255116c80350517b 100644 (file)
@@ -230,8 +230,10 @@ for a in /etc/dovecot/dovecot-db-example.conf \
                i=1
                echo "Trying to migrate $a config file to dovecot 2."
                cp -a "$a" "$a-1.2.org"
+               :> "$a.log"
+               chmod 600 "$a.log"
                # 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" || :
+               %{_bindir}/doveconf -n -c "$a-1.2.org" > "$a" 2> "$a.log" || :
        fi
 done
 if [ "$i" -eq 1 ]; then
This page took 0.109817 seconds and 4 git commands to generate.