diff options
author | Trevor Woerner <twoerner@gmail.com> | 2024-09-26 18:45:23 -0400 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2024-10-06 07:26:19 -0400 |
commit | 62b7dc247bdfd908abd6bbfc1c79a45358fb8e54 (patch) | |
tree | 70b48b2c5db95d6d3e897d984e3a387a448fbc89 | |
parent | 50fc72e99f142483cf4347d6594f506007e5f62d (diff) | |
download | meta-openembedded-62b7dc247bdfd908abd6bbfc1c79a45358fb8e54.tar.gz |
apache2: use update-alternatives for httpd
Busybox can optionally provide an httpd server, but by default The Yocto
Project defconfig for busybox does not enable it. If it is enabled,
busybox puts the resulting /usr/sbin/httpd object under the control of
update-alternatives.
apache2, on the other hand, does not put /usr/sbin/httpd under the control
of update-alternatives. Therefore, in the off chance a user enables the
busybox httpd server, it does not play well with apache2.
Add update-alternatives information to apache2 so that it plays nicely with
busybox which can optionally provide an httpd server at /usr/sbin/httpd.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-webserver/recipes-httpd/apache2/apache2_2.4.62.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.62.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.62.bb index dc6a1530ba..66a017a864 100644 --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.62.bb +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.62.bb | |||
@@ -175,6 +175,9 @@ INITSCRIPT_PARAMS = "defaults 91 20" | |||
175 | SYSTEMD_SERVICE:${PN} = "apache2.service" | 175 | SYSTEMD_SERVICE:${PN} = "apache2.service" |
176 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" | 176 | SYSTEMD_AUTO_ENABLE:${PN} = "enable" |
177 | 177 | ||
178 | ALTERNATIVE:${PN} = "httpd" | ||
179 | ALTERNATIVE_LINK_NAME[httpd] = "${sbindir}/httpd" | ||
180 | ALTERNATIVE_PRIORITY[httpd] = "60" | ||
178 | ALTERNATIVE:${PN}-doc = "htpasswd.1" | 181 | ALTERNATIVE:${PN}-doc = "htpasswd.1" |
179 | ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1" | 182 | ALTERNATIVE_LINK_NAME[htpasswd.1] = "${mandir}/man1/htpasswd.1" |
180 | 183 | ||