diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-08-26 15:27:49 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-08-26 15:27:49 -0400 |
| commit | 61ace10007cd51d8ae4a228a44b4b2d54b45fb1d (patch) | |
| tree | a2f7556ee944ea602fc029a2625a486d4e6df88a /meta-openstack/recipes-httpd/apache2/apache2_2.4.10.bbappend | |
| parent | d99b51efca0596331328758eb019736d9b1270a6 (diff) | |
| download | meta-cloud-services-61ace10007cd51d8ae4a228a44b4b2d54b45fb1d.tar.gz | |
apache2: restore mistakely removed bbappend
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-httpd/apache2/apache2_2.4.10.bbappend')
| -rw-r--r-- | meta-openstack/recipes-httpd/apache2/apache2_2.4.10.bbappend | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-openstack/recipes-httpd/apache2/apache2_2.4.10.bbappend b/meta-openstack/recipes-httpd/apache2/apache2_2.4.10.bbappend new file mode 100644 index 0000000..7aca867 --- /dev/null +++ b/meta-openstack/recipes-httpd/apache2/apache2_2.4.10.bbappend | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | INC := "${@int(PRINC) + 1}" | ||
| 2 | |||
| 3 | do_install_append() { | ||
| 4 | sed -i -e 's/#ServerName.*$/ServerName 127.0.0.1:80/' ${D}${sysconfdir}/apache2/httpd.conf | ||
| 5 | |||
| 6 | # default layout for htdocsdir in 2.4.7 is different, create the following for | ||
| 7 | # backward compatibility reasons | ||
| 8 | |||
| 9 | mkdir -p ${D}${datadir}/${BPN}/default-site | ||
| 10 | ln -sf ../htdocs ${D}${datadir}/${BPN}/default-site/htdocs | ||
| 11 | |||
| 12 | sed -i '30i if [ ! -e /var/log/apache2 ]; then ln -sf /var/apache2/logs/ /var/log/apache2; fi' ${D}/etc/init.d/apache2 | ||
| 13 | } | ||
| 14 | |||
| 15 | FILES_${PN} += "${datadir}/${BPN}/default-site" | ||
