From 8fdbf26a2b1fc798c10699424199663c036745af Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Wed, 22 Nov 2017 11:09:29 -0500 Subject: python-django-compressor: set useful perms Horizon will fail when you attempt to open the login page. The error message will indicate that 'compressor' is not found but the issue is in fact that apache2 can't access these files/directories as they are restricted to 'root' only. Looking at other Linux deployments this change matches the permissions you would find elsewhere and now allows for proper operation. Signed-off-by: Mark Asselstine Signed-off-by: Bruce Ashfield --- .../recipes-devtools/python/python-django-compressor_2.1.bb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-django-compressor_2.1.bb b/meta-openstack/recipes-devtools/python/python-django-compressor_2.1.bb index c546c85..9d528d9 100644 --- a/meta-openstack/recipes-devtools/python/python-django-compressor_2.1.bb +++ b/meta-openstack/recipes-devtools/python/python-django-compressor_2.1.bb @@ -17,4 +17,11 @@ RDEPENDS_${PN} += " \ python-rjsmin \ " +do_install_append() { + # Ensure permisive perms are granted + find -L "${D}${PYTHON_SITEPACKAGES_DIR}/compressor" -type f -exec chmod 644 {} \; + find -L "${D}${PYTHON_SITEPACKAGES_DIR}/compressor" -type d -exec chmod 755 {} \; +} + + CLEANBROKEN = "1" -- cgit v1.2.3-54-g00ecf