Package: courier
Version: 0.64.2-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu maverick ubuntu-patch



*** /tmp/tmpbhNkpR
In Ubuntu, we've applied the attached patch to achieve the following:

    - debian/courier-imap-ssl.postinst, debian/courier-mta-ssl.postinst,
      debian/courier-mta.postinst, debian/courier-pop-ssl.postinst: If
      /etc/courier for some reason does not exist, some of the
      postinst scripts could die horribly. Make sure that it does.

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid-updates
  APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 
'lucid-proposed'), (500, 'lucid-backports'), (500, 'lucid')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-22-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u courier-0.64.2/debian/courier-mta-ssl.postinst courier-0.64.2/debian/courier-mta-ssl.postinst
--- courier-0.64.2/debian/courier-mta-ssl.postinst
+++ courier-0.64.2/debian/courier-mta-ssl.postinst
@@ -21,6 +21,9 @@
 . /usr/share/debconf/confmodule
 
 if [ "$1" = "configure" ]; then
+
+	test -d /etc/courier || mkdir /etc/courier
+
 	if [ ! -f /etc/courier/esmtpd.pem ]; then
 		mkesmtpdcert
 		chown daemon /etc/courier/esmtpd.pem
diff -u courier-0.64.2/debian/courier-mta.postinst courier-0.64.2/debian/courier-mta.postinst
--- courier-0.64.2/debian/courier-mta.postinst
+++ courier-0.64.2/debian/courier-mta.postinst
@@ -24,6 +24,10 @@
 . /usr/share/debconf/confmodule
 
 if [ "$1" = "configure" ]; then
+
+	# Make sure we actually have courier's directory.
+	test -d /etc/courier || mkdir /etc/courier
+
 	# write default domain file
 	db_get courier-mta/defaultdomain 
 	echo $RET > /etc/courier/defaultdomain
@@ -53,7 +57,6 @@
 	echo $RET > /etc/courier/dsnfrom
 
 
-
 	# Update Alternatives
 	update-alternatives --install /usr/bin/lockmail lockmail /usr/bin/lockmail.courier 5 \
                       --slave /usr/share/man/man1/lockmail.1.gz lockmail.1.gz /usr/share/man/man1/lockmail.courier.1.gz
diff -u courier-0.64.2/debian/courier-pop-ssl.postinst courier-0.64.2/debian/courier-pop-ssl.postinst
--- courier-0.64.2/debian/courier-pop-ssl.postinst
+++ courier-0.64.2/debian/courier-pop-ssl.postinst
@@ -21,6 +21,9 @@
 . /usr/share/debconf/confmodule
 
 if [ "$1" = "configure" ]; then
+
+	test -d /etc/courier || mkdir /etc/courier
+
 	if [ ! -f /etc/courier/pop3d.pem ]; then
 		mkpop3dcert
 	fi
diff -u courier-0.64.2/debian/courier-imap-ssl.postinst courier-0.64.2/debian/courier-imap-ssl.postinst
--- courier-0.64.2/debian/courier-imap-ssl.postinst
+++ courier-0.64.2/debian/courier-imap-ssl.postinst
@@ -21,6 +21,9 @@
 . /usr/share/debconf/confmodule
 
 if [ "$1" = "configure" ]; then
+
+	test -d /etc/courier || mkdir /etc/courier
+
 	if [ ! -f /etc/courier/imapd.pem ]; then
 		mkimapdcert
 	fi

Reply via email to