diff options
Diffstat (limited to 'meta-webserver')
-rw-r--r-- | meta-webserver/recipes-httpd/apache2/apache2_2.4.6.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.6.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.6.bb index 6f5dd23bc..c08175141 100644 --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.6.bb +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.6.bb | |||
@@ -73,6 +73,8 @@ do_install_append() { | |||
73 | printf "\nIncludeOptional ${sysconfdir}/${BPN}/modules.d/*.conf\n\n" >> ${D}/${sysconfdir}/${BPN}/httpd.conf | 73 | printf "\nIncludeOptional ${sysconfdir}/${BPN}/modules.d/*.conf\n\n" >> ${D}/${sysconfdir}/${BPN}/httpd.conf |
74 | # match with that is in init script | 74 | # match with that is in init script |
75 | printf "\nPidFile /run/httpd.pid" >> ${D}/${sysconfdir}/${BPN}/httpd.conf | 75 | printf "\nPidFile /run/httpd.pid" >> ${D}/${sysconfdir}/${BPN}/httpd.conf |
76 | # Set 'ServerName' to fix error messages when restart apache service | ||
77 | sed -i 's/^#ServerName www.example.com/ServerName localhost/' ${D}/${sysconfdir}/${BPN}/httpd.conf | ||
76 | 78 | ||
77 | if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 79 | if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
78 | install -d ${D}${sysconfdir}/tmpfiles.d/ | 80 | install -d ${D}${sysconfdir}/tmpfiles.d/ |