diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2018-01-10 11:09:56 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2018-02-05 10:40:18 -0500 |
commit | b5b95422e7be2cb65a652fc9477246469668ed9c (patch) | |
tree | 8d48603f4787c895dd7bbc847209ac78727c6e96 /meta-networking/recipes-daemons/postfix/files | |
parent | 10b76743988fe73d81f7781f7412d3e3e1a81b91 (diff) | |
download | meta-openembedded-b5b95422e7be2cb65a652fc9477246469668ed9c.tar.gz |
postfix: fix generating aliases db files
When generating aliases db files, the newaliases tries to chdir
/var/spool/postfix on the host. It would cause a failure if the host
doesn't install postfix:
newaliases: fatal: chdir /var/spool/postfix: No such file or directory
Move this step from do_install to pkg_postinst to make sure newaliases
and postmap run during the image creation.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons/postfix/files')
-rw-r--r-- | meta-networking/recipes-daemons/postfix/files/main.cf | 2 | ||||
-rw-r--r-- | meta-networking/recipes-daemons/postfix/files/postfix.service | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta-networking/recipes-daemons/postfix/files/main.cf b/meta-networking/recipes-daemons/postfix/files/main.cf index 2371ace6e4..e75c6fc0d7 100644 --- a/meta-networking/recipes-daemons/postfix/files/main.cf +++ b/meta-networking/recipes-daemons/postfix/files/main.cf | |||
@@ -33,7 +33,7 @@ queue_directory = /var/spool/postfix | |||
33 | mail_spool_directory = /var/spool/mail | 33 | mail_spool_directory = /var/spool/mail |
34 | readme_directory = no | 34 | readme_directory = no |
35 | command_directory = /usr/sbin | 35 | command_directory = /usr/sbin |
36 | daemon_directory = @LIBEXECDIR@ | 36 | daemon_directory = @LIBEXECDIR@/postfix |
37 | mail_owner = postfix | 37 | mail_owner = postfix |
38 | setgid_group = postdrop | 38 | setgid_group = postdrop |
39 | unknown_local_recipient_reject_code = 450 | 39 | unknown_local_recipient_reject_code = 450 |
diff --git a/meta-networking/recipes-daemons/postfix/files/postfix.service b/meta-networking/recipes-daemons/postfix/files/postfix.service index 3a9a0a1813..30d54a4405 100644 --- a/meta-networking/recipes-daemons/postfix/files/postfix.service +++ b/meta-networking/recipes-daemons/postfix/files/postfix.service | |||
@@ -7,7 +7,7 @@ Conflicts=sendmail.service exim.service | |||
7 | Type=forking | 7 | Type=forking |
8 | PIDFile=@LOCALSTATEDIR@/spool/postfix/pid/master.pid | 8 | PIDFile=@LOCALSTATEDIR@/spool/postfix/pid/master.pid |
9 | ExecStartPre=-@SBINDIR@/check_hostname.sh | 9 | ExecStartPre=-@SBINDIR@/check_hostname.sh |
10 | ExecStartPre=-@LIBEXECDIR@/aliasesdb | 10 | ExecStartPre=-@LIBEXECDIR@/postfix/aliasesdb |
11 | ExecStart=@SBINDIR@/postfix start | 11 | ExecStart=@SBINDIR@/postfix start |
12 | ExecReload=@SBINDIR@/postfix reload | 12 | ExecReload=@SBINDIR@/postfix reload |
13 | ExecStop=@SBINDIR@/postfix stop | 13 | ExecStop=@SBINDIR@/postfix stop |