Subject: bin/18155: postfix post-install script errors out due to missing "echo"
To: None <gnats-bugs@gnats.netbsd.org>
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
>Closed-Date:
>Last-Modified:
>Originator: Havard Eidnes
>Release: NetBSD 1.6_RC1
>Organization:
Fairly unorganized
>Environment:
System: NetBSD nardo.uninett.no 1.6_RC1 NetBSD 1.6_RC1 (NARDO) #7: Tue Aug 20 00:35:35 CEST 2002 he@nardo.uninett.no:/usr/src/sys/arch/i386/compile/NARDO i386
Architecture: i386
Machine: i386
>Description:
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
files:
/etc/postfix/postfix-script
/etc/postfix/post-install
/etc/postfix/postfix-files
/etc/postfix/master.cf
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
nardo#
>How-To-Repeat:
See above.
>Fix:
Note the double colon. This appears to be the correct fix to
gnu/dist/postfix/conf/post-install
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 main.cf, and at
least the above mentioned files.
>Release-Note:
>Audit-Trail:
>Unformatted: