~ubuntu-branches/ubuntu/maverick/dovecot/maverick-updates

« back to all changes in this revision

Viewing changes to debian/mail-stack-delivery.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-06-02 10:03:18 UTC
  • Revision ID: james.westby@ubuntu.com-20110602100318-fzh79o18t5cmqoe6
Tags: 1:1.2.12-1ubuntu8.3
debian/mail-stack-delivery.postinst: don't override user's postfix 
settings on upgrade. Thanks to Ante Karamatic. (LP: #715056)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        # (only deleted when the pkg is removed)
27
27
        if [ -f "/etc/postfix/main.cf" ]; then
28
28
                if [ -e "$POSTFIX_BCKFILE" ]; then
29
 
                        mv $POSTFIX_BCKFILE ${POSTFIX_BCKFILE}-$(date +%Y%m%d%H%M)
 
29
                        cp $POSTFIX_BCKFILE ${POSTFIX_BCKFILE}-$(date +%Y%m%d%H%M)
30
30
                fi
31
31
                if [ -z "$2" -o ! -e "$POSTFIX_BCKFILE" ]; then
32
32
                        if which postconf >/dev/null; then
33
33
                                # Setup postfix
 
34
                                echo 'Mail stack delivery changes some postfix settings.'
 
35
                                echo 'Old values are stored in '$POSTFIX_BCKFILE'.'
 
36
                                echo 'Feel free to revert any of them when the process is done.'
34
37
                                echo -n 'Configuring postfix for mail-stack-delivery integration: '
35
38
                                set_postfix_option "home_mailbox = Maildir/"
36
39
                                set_postfix_option "smtpd_sasl_auth_enable = yes"