Subject: bin/18155: postfix post-install script errors out due to missing "echo"
To: None <>
From: None <he@netbsd.orrg>
List: netbsd-bugs
Date: 09/03/2002 15:01:23
>Number:         18155
>Category:       bin
>Synopsis:       postfix post-install script errors out due to missing "echo"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 03 06:02:01 PDT 2002
>Originator:     Havard Eidnes
>Release:        NetBSD 1.6_RC1
	Fairly unorganized
System: NetBSD 1.6_RC1 NetBSD 1.6_RC1 (NARDO) #7: Tue Aug 20 00:35:35 CEST 2002 i386
Architecture: i386
Machine: i386
	After upgrading from 1.5.3 to 1.6_RC1 (from source), my
	postfix system stopped working.  The initial error message was

Sep  3 12:15:24 nardo postfix/postsuper[8383]: fatal: scan_dir_push: open directory flush: No such file or directory

	After manually creating the /var/spool/postfix/flush
 	directory, the next error message seen was

Sep  3 12:39:53 nardo postfix/pickup[8646]: warning: connect #1 to subsystem public/cleanup: No such file or directory

	Some of this was due to me not having upgraded the following


	However, after this was done, "postfix check" still errored
 	out with

nardo# postfix check
/etc/postfix/post-install: /etc/postfix/post-install:: not found
postfix/postfix-script: warning: unable to create missing queue directories

	See above.

	Note the double colon.  This appears to be the correct fix to 

nardo: {39} diff -u conf/post-install /etc/postfix/post-install
--- conf/post-install   Sun Feb  3 00:10:41 2002
+++ /etc/postfix/post-install   Tue Sep  3 14:45:16 2002
@@ -249,7 +249,7 @@
 test -f $config_directory/postfix-files || {
-    $0: Error: $config_directory/postfix-files is not a file. 1>&2
+    echo $0: Error: $config_directory/postfix-files is not a file. 1>&2
     exit 1
	Furthermore, the etc/postinstall script should probably have
 	been extended with code to update the postfix files which are
 	usually not touched by the system administrator, i.e. in my
 	case update everything in /etc/postfix except, and at
 	least the above mentioned files.