2004-09-09 10:35:48 +00:00
|
|
|
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.
|
2013-09-16 13:38:54 +00:00
|
|
|
diff --git a/conf/post-install b/conf/post-install
|
|
|
|
index 91ff4a6..f78d820 100644
|
|
|
|
--- a/conf/post-install
|
|
|
|
+++ b/conf/post-install
|
|
|
|
@@ -480,6 +480,16 @@ test -n "$create" && {
|
2004-09-09 10:35:48 +00:00
|
|
|
case $path in
|
|
|
|
no|no/*) continue;;
|
|
|
|
esac
|
|
|
|
+ # Munge paths for alternatives.
|
|
|
|
+ case $path in
|
|
|
|
+ /usr/bin/mailq) path=$path.postfix ;;
|
|
|
|
+ /usr/bin/newaliases) path=$path.postfix ;;
|
|
|
|
+ /usr/bin/rmail) path=$path.postfix ;;
|
|
|
|
+ /usr/sbin/sendmail) path=$path.postfix ;;
|
|
|
|
+ /usr/share/man/man1/mailq.1.gz) path=/usr/share/man/man1/mailq.postfix.1.gz ;;
|
|
|
|
+ /usr/share/man/man1/newaliases.1.gz) path=/usr/share/man/man1/newaliases.postfix.1.gz ;;
|
|
|
|
+ /usr/share/man/man5/aliases.5.gz) path=/usr/share/man/man5/aliases.postfix.5.gz ;;
|
|
|
|
+ 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
|