From 7df1be3055cb85e0d37ada980c3438de4fac0ebb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Wed, 5 Mar 2014 15:02:40 +0100 Subject: [PATCH] Compress the CSS and JS during the postinst Closes: #739698 (cherry picked from commit 2d7b2f4276529124356da2d06b5bcdf2344e3f8e) Rewritten-From: 49f61e8d96e11ecebd0d9a505519c28626c18765 --- xenial/debian/changelog | 4 ++++ xenial/debian/openstack-dashboard.postinst | 3 +++ 2 files changed, 7 insertions(+) diff --git a/xenial/debian/changelog b/xenial/debian/changelog index abbed94..0253b34 100644 --- a/xenial/debian/changelog +++ b/xenial/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/xenial/debian/openstack-dashboard.postinst b/xenial/debian/openstack-dashboard.postinst index 8966866..8563d62 100644 --- a/xenial/debian/openstack-dashboard.postinst +++ b/xenial/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# -- 2.45.2