diff options
| author | Amy Fong <amy.fong@windriver.com> | 2014-04-08 18:10:10 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-10 14:38:56 -0400 |
| commit | aaf75e37f0cf759e9b5b04c8f3c23346aa053c78 (patch) | |
| tree | 4cd4adb5d8244c1c36f45e38f8f6bba52c79b91c /meta-openstack/recipes-devtools/python | |
| parent | 7f2b6ebfc0d2e4d2b8c8e6d3208a2cae435d0eeb (diff) | |
| download | meta-cloud-services-aaf75e37f0cf759e9b5b04c8f3c23346aa053c78.tar.gz | |
python-horizon init scripts
Split out a new package horizon-standalone that just contains the init script for the
built in webserver.
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-horizon/horizon.init | 4 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-horizon_git.bb | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-horizon/horizon.init b/meta-openstack/recipes-devtools/python/python-horizon/horizon.init index 1c03b78..994fbec 100644 --- a/meta-openstack/recipes-devtools/python/python-horizon/horizon.init +++ b/meta-openstack/recipes-devtools/python/python-horizon/horizon.init | |||
| @@ -66,10 +66,6 @@ status() | |||
| 66 | echo "$DESC is not running" | 66 | echo "$DESC is not running" |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | if [ -e /etc/apache2/conf.d/openstack-dashboard-apache.conf ]; then | ||
| 70 | chown -R daemon /usr/share/openstack-dashboard/openstack_dashboard/static | ||
| 71 | fi | ||
| 72 | |||
| 73 | case "$1" in | 69 | case "$1" in |
| 74 | start) | 70 | start) |
| 75 | start | 71 | start |
diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb index 153f4d4..59d875a 100644 --- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb +++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb | |||
| @@ -86,23 +86,26 @@ do_install_append() { | |||
| 86 | sed -i -e 's#%PYTHON_SITEPACKAGES%#${PYTHON_SITEPACKAGES_DIR}#' ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf | 86 | sed -i -e 's#%PYTHON_SITEPACKAGES%#${PYTHON_SITEPACKAGES_DIR}#' ${D}/etc/apache2/conf.d/openstack-dashboard-apache.conf |
| 87 | 87 | ||
| 88 | ln -fs openstack_dashboard/static ${D}/usr/share/openstack-dashboard/static | 88 | ln -fs openstack_dashboard/static ${D}/usr/share/openstack-dashboard/static |
| 89 | |||
| 90 | # daemon is UID 1 | ||
| 91 | chown -R 1 ${D}/usr/share/openstack-dashboard/openstack_dashboard/static | ||
| 89 | } | 92 | } |
| 90 | 93 | ||
| 91 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache" | 94 | PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone" |
| 92 | 95 | ||
| 93 | FILES_${PN} = "${libdir}/*" | 96 | FILES_${PN} = "${libdir}/*" |
| 94 | 97 | ||
| 95 | FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh" | 98 | FILES_${SRCNAME}-tests = "${sysconfdir}/${SRCNAME}/run_tests.sh" |
| 96 | 99 | ||
| 97 | FILES_${SRCNAME} = "${bindir}/* \ | 100 | FILES_${SRCNAME} = "${bindir}/* \ |
| 98 | ${sysconfdir}/init.d/* \ | ||
| 99 | ${datadir}/* \ | 101 | ${datadir}/* \ |
| 100 | " | 102 | " |
| 101 | 103 | ||
| 104 | FILES_${SRCNAME}-standalone = "${sysconfdir}/init.d/horizon" | ||
| 105 | |||
| 102 | FILES_${SRCNAME}-apache = "/etc/apache2 \ | 106 | FILES_${SRCNAME}-apache = "/etc/apache2 \ |
| 103 | /etc/openstack-dashboard/ \ | 107 | /etc/openstack-dashboard/ \ |
| 104 | /usr/share/openstack-dashboard/ \ | 108 | /usr/share/openstack-dashboard/ \ |
| 105 | /var/lib/openstack-dashboard \ | ||
| 106 | " | 109 | " |
| 107 | 110 | ||
| 108 | RDEP_ARCH_VAR = "" | 111 | RDEP_ARCH_VAR = "" |
