Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > main-testing-src > by-pkgid > 0676cee73c4e3f894a27c3961757539b > files > 21

postfix-2.7.0-5.2mdv2010.2.src.rpm

Changing the postfix-files config file won't work right on upgrades because
it's a noreplace configuration (the new version with the right paths in it is
installed as postfix-files.rpmnew), so we just munge the post-install script.
--- postfix-1.1.3/conf/post-install	Thu Feb 28 16:15:08 2002
+++ postfix-1.1.3/conf/post-install	Thu Feb 28 16:14:54 2002
@@ -429,6 +429,10 @@
 	case $path in
 	no|no/*) continue;;
 	esac
+	# Munge paths for alternatives.
+	case $path in
+		/usr/sbin/sendmail) path=$path.postfix ;;
+	esac
 	# Pick up the flags.
 	case $flags in *u*) upgrade_flag=1;; *) upgrade_flag=;; esac
 	case $flags in *c*) create_flag=1;; *) create_flag=;; esac