Merge ~kstenerud/ubuntu/+source/postfix:cosmic-postfix-mysql-config-1791139 into ubuntu/+source/postfix:ubuntu/cosmic-devel
Status: | Merged |
---|---|
Approved by: | Andreas Hasenack |
Approved revision: | 535f0b89fa9fd2264b82f5c4ea7737f1e109be5c |
Merged at revision: | 535f0b89fa9fd2264b82f5c4ea7737f1e109be5c |
Proposed branch: | ~kstenerud/ubuntu/+source/postfix:cosmic-postfix-mysql-config-1791139 |
Merge into: | ubuntu/+source/postfix:ubuntu/cosmic-devel |
Diff against target: |
113 lines (+14/-14) 8 files modified
debian/changelog (+7/-0) debian/postfix-cdb.postinst (+1/-2) debian/postfix-ldap.postinst (+1/-2) debian/postfix-lmdb.postinst (+1/-2) debian/postfix-mysql.postinst (+1/-2) debian/postfix-pcre.postinst (+1/-2) debian/postfix-pgsql.postinst (+1/-2) debian/postfix.postinst (+1/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andreas Hasenack | Approve | ||
Canonical Server | Pending | ||
Canonical Server Core Reviewers | Pending | ||
Review via email: mp+354654@code.launchpad.net |
Description of the change
Handle empty alias fields in /etc/postfix/
PPA: https:/
Steps to test (broken path):
# lxc launch ubuntu-daily:cosmic testing
# lxc exec testing bash
# dhclient
# apt update
# apt dist-upgrade -y
# apt install -y postfix postfix-mysql
# sed -i 's/\(alias_.* =\).*/\1/g' /etc/postfix/
# service postfix reload
# apt install --reinstall postfix-mysql
You'll get the following error:
Adding mysql map entry to /etc/postfix/
/var/
Steps to test (fixed path):
# lxc launch ubuntu-daily:cosmic testing
# lxc exec testing bash
# dhclient
# sudo add-apt-repository -y ppa:kstenerud/
# apt update
# apt dist-upgrade -y
# apt install -y postfix postfix-mysql
# sed -i 's/\(alias_.* =\).*/\1/g' /etc/postfix/
# service postfix reload
# apt install --reinstall postfix-mysql
The reinstall process should complete successfully.
Please see the other debian/*.postinst scripts, all (most?) of them have the same problem. Short list in https:/ /bugs.launchpad .net/ubuntu/ +source/ postfix/ +bug/1791139/ comments/ 7