From: Gonéri Le Bouder Date: Wed, 5 Mar 2014 14:02:40 +0000 (+0100) Subject: Compress the CSS and JS during the postinst X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=187513986ac959729821f4ec51e6d3350f810d40;p=openstack-build%2Fhorizon-build.git Compress the CSS and JS during the postinst Closes: #739698 (cherry picked from commit 2d7b2f4276529124356da2d06b5bcdf2344e3f8e) Rewritten-From: 49f61e8d96e11ecebd0d9a505519c28626c18765 --- diff --git a/trusty/debian/changelog b/trusty/debian/changelog index abbed94..0253b34 100644 --- a/trusty/debian/changelog +++ b/trusty/debian/changelog @@ -1,5 +1,9 @@ horizon (2014.1~b2-1) experimental; urgency=low + [ Gonéri Le Bouder ] + * Compress the CSS and JS during the postinst (Closes: #739698) + + [ Thomas Goirand ] * New upstream release (Icehouse beta 1). * Removes CVE-2013-6858 patch applied upstream. * Refreshed patch. diff --git a/trusty/debian/openstack-dashboard.postinst b/trusty/debian/openstack-dashboard.postinst index 8966866..8563d62 100644 --- a/trusty/debian/openstack-dashboard.postinst +++ b/trusty/debian/openstack-dashboard.postinst @@ -15,6 +15,9 @@ if [ "$1" = "configure" ] ; then chown www-data:www-data /var/lib/openstack-dashboard/static/css chown www-data:www-data /var/lib/openstack-dashboard/static/js chown www-data:www-data /var/lib/openstack-dashboard/secret-key + + # Compress the JS and CSS with python-compressor and python-lesscpy + /usr/share/openstack-dashboard/manage.py compress fi #DEBHELPER#