aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-extended/lighttpd/lighttpd_openstack.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-extended/lighttpd/lighttpd_openstack.inc')
-rw-r--r--meta-openstack/recipes-extended/lighttpd/lighttpd_openstack.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-openstack/recipes-extended/lighttpd/lighttpd_openstack.inc b/meta-openstack/recipes-extended/lighttpd/lighttpd_openstack.inc
new file mode 100644
index 00000000..33b1f61c
--- /dev/null
+++ b/meta-openstack/recipes-extended/lighttpd/lighttpd_openstack.inc
@@ -0,0 +1,3 @@
+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
+}