aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.33.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.33.bbappend')
-rw-r--r--meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.33.bbappend5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.33.bbappend b/meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.33.bbappend
new file mode 100644
index 00000000..50fab9f6
--- /dev/null
+++ b/meta-openstack/recipes-extended/lighttpd/lighttpd_1.4.33.bbappend
@@ -0,0 +1,5 @@
+INC := "${@int(PRINC) + 1}"
+
+do_install_append() {
+ sed -i '2i port=`grep "^server.port" /etc/lighttpd.conf`; if [ -z $port ]; then echo "server port not configured, not running lighttpd..."; exit 0; fi' ${D}/etc/init.d/lighttpd
+}