]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Compress the CSS and JS during the postinst
authorGonéri Le Bouder <goneri.lebouder@enovance.com>
Wed, 5 Mar 2014 14:02:40 +0000 (15:02 +0100)
committerGonéri Le Bouder <goneri.lebouder@enovance.com>
Fri, 7 Mar 2014 15:58:01 +0000 (16:58 +0100)
Closes: #739698
(cherry picked from commit 2d7b2f4276529124356da2d06b5bcdf2344e3f8e)

Rewritten-From: 49f61e8d96e11ecebd0d9a505519c28626c18765

xenial/debian/changelog
xenial/debian/openstack-dashboard.postinst

index abbed947f35dda359c6a5e7227cfa39f000ee629..0253b342dc34e76719e82f204ab6196d9915603c 100644 (file)
@@ -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.
index 8966866af2a277681da1ccf447476bf9221c6c44..8563d629fc5ebfba6f71803f5f9cf5ed105414a2 100644 (file)
@@ -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#