FS#42952 - [postfix] Error: /postfix-files is not a file.

Attached to Project: Arch Linux
Opened by A (lmeijberg) - Saturday, 29 November 2014, 13:51 GMT
Last edited by Gaetan Bisson (vesath) - Saturday, 29 November 2014, 19:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When running the command /usr/lib/postfix/post-install upgrade-permissions the following error occurs: /usr/lib/postfix/post-install: Error: /postfix-files is not a file
As you can see by the error the scripts seems to expect the file postfix-files to be located in the root directory /
I have confirmed this by copying the file to / and running the script again and no errors where displayed and the script seemed to do it's job.

Additional info:
Name : postfix
Version : 2.11.3-1

Steps to reproduce:
Run the command: /usr/lib/postfix/post-install upgrade-permissions

Research details:
Check that post-install does is:

test -f $daemon_directory/postfix-files || {
echo $0: Error: $daemon_directory/postfix-files is not a file. 1>&2
exit 1
}

Searching the hole post-install file it seems to be consistent in the $daemon_directory/postfix-files references.
I could not find how the variable $daemon_directory is filled so I could not verify how the full path $daemon_directory/postfix-files would look like to trace down the error.
But I expect this variable to be empty thus resulting in the expectation of postfix-files to be at /.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Saturday, 29 November 2014, 19:22 GMT
Reason for closing:  Not a bug
Comment by A (lmeijberg) - Saturday, 29 November 2014, 14:25 GMT
I now understand that the information for daemon_directory is fetched from the main.cf configuration file from postfix.
My main.cf is configured: daemon_directory = /usr/lib/postfix
So if the post-install script fetches it's information for daemon_directory from the main.cf file it should expect the postfix-files at the right location. However it does not.
Comment by Gaetan Bisson (vesath) - Saturday, 29 November 2014, 19:22 GMT
You do not have to run post-install by hand, nor should you.
Our install script takes care of that for you.

Loading...